From dee4dd8166d47c69fe982b701cee40c44f9aabea Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Fri, 18 Jan 2013 13:20:00 +0000 Subject: Move out non-query gen tests --- test/ORMTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ORMTest.php') diff --git a/test/ORMTest.php b/test/ORMTest.php index 81a5b05..ced3cbd 100644 --- a/test/ORMTest.php +++ b/test/ORMTest.php @@ -78,4 +78,10 @@ class ORMTest extends PHPUnit_Framework_TestCase { $this->assertSame(count($result_set), 5); } + public function testGetLastPdoStatement() { + ORM::for_table('widget')->where('name', 'Fred')->find_one(); + $statement = ORM::get_last_statement(); + $this->assertInstanceOf('MockPDOStatement', $statement); + } + } \ No newline at end of file -- cgit v1.2.3