Skip to content
This repository
Browse code

skipping the rijndael test if mcrypt_encrypt() is not available

  • Loading branch information...
commit 26934236b1a3d71f53b76115ebaeb9de32b577fe 1 parent ccd3378
Carl Sutton 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 2693423

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