Removing workaround code for PHP 5.3.0. Error is no longer being generated in PHP 5.3.1

This commit is contained in:
Mark Story 2010-02-27 11:26:16 -05:00
parent 1f25bb31c0
commit 0960abcfb9

View file

@ -4865,9 +4865,6 @@ class ModelReadTest extends BaseModelTest {
$this->assertEqual(3, count($TestModel->find('all'))); $this->assertEqual(3, count($TestModel->find('all')));
$this->expectError(new PatternExpectation('/Non-existent data source foo/i')); $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'))); $this->assertFalse($TestModel->find('all', array('connection' => 'foo')));
} }