Browse Source

Merge pull request #7256 from cakephp/master-tests-mcrypt

Skip test if ext missing.
Mark Story 10 years ago
parent
commit
d9a4bfaaa2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/TestCase/Utility/SecurityTest.php

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

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