diff options
author | michaelward82 <[email protected]> | 2013-09-14 14:38:28 +0100 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2013-12-26 16:18:40 +0000 |
commit | 9363ae11bac70a6e5bb2c02410d05690e75cf95f (patch) | |
tree | f9fbe879a380fa1a0d6f6e8fc9ddf30d3e7c6f91 /test | |
parent | 3530b21fec1ee958a2c0d9c31ed83d53ac66ceee (diff) |
Adds regression tests for missing magic method calls to ORM and IdiormResultSet
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 |