Commit 47d8bd24 authored by pookey's avatar pookey

updating tests refs #168

parent 716a91e5
...@@ -115,31 +115,28 @@ class Doctrine_TableTestCase extends Doctrine_UnitTestCase { ...@@ -115,31 +115,28 @@ class Doctrine_TableTestCase extends Doctrine_UnitTestCase {
$record = $this->objTable->find('4'); $record = $this->objTable->find('4');
$this->assertTrue($record instanceof Doctrine_Record); $this->assertTrue($record instanceof Doctrine_Record);
} catch(Exception $e) { } catch(Exception $e) {
$this->assertTrue($e instanceOf Doctrine_Find_Exception); $this->assertTrue(false);
} }
try { try {
$record = $this->objTable->find(123); $record = $this->objTable->find(123);
// should have thrown exception... $this->assertTrue($record === false);
$this->assertTrue(false);
} catch(Exception $e) { } catch(Exception $e) {
$this->assertTrue($e instanceOf Doctrine_Find_Exception); $this->assertTrue(false);
} }
try { try {
$record = $this->objTable->find(null); $record = $this->objTable->find(null);
// should have thrown exception... $this->assertTrue($record === false);
$this->assertTrue(false);
} catch(Exception $e) { } catch(Exception $e) {
$this->assertTrue($e instanceOf Doctrine_Find_Exception); $this->assertTrue(false);
} }
try { try {
$record = $this->objTable->find(false); $record = $this->objTable->find(false);
// should have thrown exception... $this->assertTrue($record === false);
$this->assertTrue(false);
} catch(Exception $e) { } catch(Exception $e) {
$this->assertTrue($e instanceOf Doctrine_Find_Exception); $this->assertTrue(false);
} }
} }
public function testFindAll() { public function testFindAll() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment