Skip to content
This repository
Browse code

Adding conditional to php5 only function use.

  • Loading branch information...
commit 276d183bddd88d6675b55fdb5a85083e14fe34ca 1 parent 741f507
Mark Story authored

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  cake/tests/cases/libs/set.test.php
8  cake/tests/cases/libs/set.test.php
@@ -2404,9 +2404,11 @@ function testApply() {
2404 2404
 		$expected = 9;
2405 2405
 		$this->assertEqual($result, $expected);
2406 2406
 
2407  
-		$result = Set::apply('/Movie/rating', $data, 'array_product');
2408  
-		$expected = 15;
2409  
-		$this->assertEqual($result, $expected);
  2407
+		if (PHP5) {
  2408
+			$result = Set::apply('/Movie/rating', $data, 'array_product');
  2409
+			$expected = 15;
  2410
+			$this->assertEqual($result, $expected);
  2411
+		}
2410 2412
 
2411 2413
 		$result = Set::apply('/Movie/title', $data, 'ucfirst', array('type' => 'map'));
2412 2414
 		$expected = array('Movie 3', 'Movie 1', 'Movie 2');

0 notes on commit 276d183

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