diff options
author | Simon Holywell <[email protected]> | 2014-01-23 13:08:36 +0000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2014-01-23 13:08:36 +0000 |
commit | 84e4d5e0d707c06cbce50a9f0947fdc20054aa0f (patch) | |
tree | d546f0526108168fb710efbf173bf4a672cb36b6 /test | |
parent | 3fbafbeb80039facd6c3eea33d5060cf82270463 (diff) | |
parent | 472123d14eb8785bc54240a8d7a88addb1424d55 (diff) |
Merge branch 'develop' of github.com:j4mie/idiorm into develop
Diffstat (limited to 'test')
-rw-r--r-- | test/ORMTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ORMTest.php b/test/ORMTest.php index ebd3d17..e0e4900 100644 --- a/test/ORMTest.php +++ b/test/ORMTest.php @@ -84,4 +84,19 @@ class ORMTest extends PHPUnit_Framework_TestCase { $this->assertInstanceOf('MockPDOStatement', $statement); } + /** + * @expectedException IdiormMethodMissingException + */ + public function testInvalidORMFunctionCallShouldCreateException() { + $orm = ORM::for_table('test'); + $orm->invalidFunctionCall(); + } + + /** + * @expectedException IdiormMethodMissingException + */ + public function testInvalidResultsSetFunctionCallShouldCreateException() { + $resultSet = ORM::for_table('test')->find_result_set(); + $resultSet->invalidFunctionCall(); + } }
\ No newline at end of file |