mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Adding conditional check for errors only generated in PHP5.3
This commit is contained in:
parent
0ba93bd579
commit
ace784aab5
1 changed files with 3 additions and 1 deletions
|
@ -4883,7 +4883,9 @@ class ModelReadTest extends BaseModelTest {
|
|||
$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')));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue