Browse Source

Added skip test instruction if ext/bcmath is disabled

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18169 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 16 years ago
parent
commit
642833539f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/Zend/Crypt/Math/BigInteger/BcmathTest.php

+ 4 - 0
tests/Zend/Crypt/Math/BigInteger/BcmathTest.php

@@ -38,6 +38,10 @@ class Zend_Crypt_Math_BigInteger_BcmathTest extends PHPUnit_Framework_TestCase
 
     public function setUp()
     {
+        if (!extension_loaded('bcmath')) {
+            $this->markTestSkipped('Skipped: Zend_Crypt_Math_BigInteger_BcmathTest due to ext/bcmath being unavailable');
+            return;
+        }
         $this->_math = new Zend_Crypt_Math_BigInteger_Bcmath;
     }