Browse files

Merge pull request #849 from dogmatic69/rijndael-fatal-error

skipping the rijndael test if mcrypt_encrypt() is not available
  • Loading branch information...
2 parents 7f76f70 + 2693423 commit cdfead0feb0590dab452fe57d91471801e6b2f9a @markstory markstory committed Sep 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Test/Case/Utility/SecurityTest.php
View
1 lib/Cake/Test/Case/Utility/SecurityTest.php
@@ -215,6 +215,7 @@ public function testCipherEmptyKey() {
* @return void
*/
public function testRijndael() {
+ $this->skipIf(!function_exists('mcrypt_encrypt'));
$txt = 'The quick brown fox jumped over the lazy dog.';
$key = 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi';

0 comments on commit cdfead0

Please sign in to comment.