Permalink
Browse files

Adding conditional to php5 only function use.

  • Loading branch information...
1 parent 741f507 commit 276d183bddd88d6675b55fdb5a85083e14fe34ca @markstory markstory committed Jan 15, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 cake/tests/cases/libs/set.test.php
@@ -2404,9 +2404,11 @@ function testApply() {
$expected = 9;
$this->assertEqual($result, $expected);
- $result = Set::apply('/Movie/rating', $data, 'array_product');
- $expected = 15;
- $this->assertEqual($result, $expected);
+ if (PHP5) {
+ $result = Set::apply('/Movie/rating', $data, 'array_product');
+ $expected = 15;
+ $this->assertEqual($result, $expected);
+ }
$result = Set::apply('/Movie/title', $data, 'ucfirst', array('type' => 'map'));
$expected = array('Movie 3', 'Movie 1', 'Movie 2');

0 comments on commit 276d183

Please sign in to comment.