Skip to content

Commit

Permalink
Removing workaround code for PHP 5.3.0. Error is no longer being gene…
Browse files Browse the repository at this point in the history
…rated in PHP 5.3.1
  • Loading branch information
markstory committed Feb 27, 2010
1 parent 1f25bb3 commit 0960abc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cake/tests/cases/libs/model/model_read.test.php
Expand Up @@ -4865,9 +4865,6 @@ function testCallbackSourceChange() {
$this->assertEqual(3, count($TestModel->find('all')));

$this->expectError(new PatternExpectation('/Non-existent data source foo/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')));
}

Expand Down

0 comments on commit 0960abc

Please sign in to comment.