From 47d8bd24378cac73d9c4ac2141f0b53300748fb6 Mon Sep 17 00:00:00 2001 From: pookey Date: Sun, 15 Oct 2006 17:24:35 +0000 Subject: [PATCH] updating tests refs #168 --- tests/TableTestCase.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/tests/TableTestCase.php b/tests/TableTestCase.php index 52b41aea6..c79c00d0b 100644 --- a/tests/TableTestCase.php +++ b/tests/TableTestCase.php @@ -115,31 +115,28 @@ class Doctrine_TableTestCase extends Doctrine_UnitTestCase { $record = $this->objTable->find('4'); $this->assertTrue($record instanceof Doctrine_Record); } catch(Exception $e) { - $this->assertTrue($e instanceOf Doctrine_Find_Exception); + $this->assertTrue(false); } try { $record = $this->objTable->find(123); - // should have thrown exception... - $this->assertTrue(false); + $this->assertTrue($record === false); } catch(Exception $e) { - $this->assertTrue($e instanceOf Doctrine_Find_Exception); + $this->assertTrue(false); } try { $record = $this->objTable->find(null); - // should have thrown exception... - $this->assertTrue(false); + $this->assertTrue($record === false); } catch(Exception $e) { - $this->assertTrue($e instanceOf Doctrine_Find_Exception); + $this->assertTrue(false); } try { $record = $this->objTable->find(false); - // should have thrown exception... - $this->assertTrue(false); + $this->assertTrue($record === false); } catch(Exception $e) { - $this->assertTrue($e instanceOf Doctrine_Find_Exception); + $this->assertTrue(false); } } public function testFindAll() {