Browse Source

Skip test if ext missing.

mark 10 years ago
parent
commit
5375c2cf78
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/TestCase/Utility/SecurityTest.php

+ 3 - 0
tests/TestCase/Utility/SecurityTest.php

@@ -260,6 +260,9 @@ class SecurityTest extends TestCase
      */
     public function testEngineEquivalence()
     {
+        $this->skipIf(!defined('MCRYPT_RIJNDAEL_128'), 'This needs mcrypt extension to be laoded.');
+
+
         $restore = Security::engine();
         $txt = "Obi-wan you're our only hope";
         $key = 'This is my secret key phrase it is quite long.';