Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding conditional check for errors only generated in PHP5.3

  • Loading branch information...
commit ace784aab53638f068faf3dec1ba8bf97ef18c2f 1 parent 0ba93bd
@markstory markstory authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cake/tests/cases/libs/model/model_read.test.php
View
4 cake/tests/cases/libs/model/model_read.test.php
@@ -4883,7 +4883,9 @@ function testCallbackSourceChange() {
$this->assertEqual(3, count($TestModel->find('all')));
$this->expectError(new PatternExpectation('/Non-existent data source foo/i'));
- $this->expectError(new PatternExpectation('/Only variable references/i'));
+ if (defined('PHP_VERSION_ID') && PHP_VERSION_ID >= 50300) {
+ $this->expectError(new PatternExpectation('/Only variable references/i'));
+ }
$this->assertFalse($TestModel->find('all', array('connection' => 'foo')));
}
Please sign in to comment.
Something went wrong with that request. Please try again.