Skip to content
This repository
Browse code

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

skipping the rijndael test if mcrypt_encrypt() is not available
  • Loading branch information...
commit cdfead0feb0590dab452fe57d91471801e6b2f9a 2 parents 7f76f70 + 2693423
Mark Story authored September 15, 2012
1  lib/Cake/Test/Case/Utility/SecurityTest.php
@@ -215,6 +215,7 @@ public function testCipherEmptyKey() {
215 215
  * @return void
216 216
  */
217 217
 	public function testRijndael() {
  218
+		$this->skipIf(!function_exists('mcrypt_encrypt'));
218 219
 		$txt = 'The quick brown fox jumped over the lazy dog.';
219 220
 		$key = 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi';
220 221
 

0 notes on commit cdfead0

Please sign in to comment.
Something went wrong with that request. Please try again.