diff options
Diffstat (limited to 'test/ORMTest.php')
-rw-r--r-- | test/ORMTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 |