Skip to content
Browse files

Test BadMethodCallException.

  • Loading branch information...
1 parent d85b249 commit af6ca579870ad35fdbe6a7704713a757327d6a31 @lukemorton lukemorton committed Apr 27, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/ModelMagicTest.php
View
9 test/ModelMagicTest.php
@@ -105,5 +105,14 @@ public function testMagicCallRelationship($model, $method, $expected, $args)
$this->assertSame($expected, $mock->method_called());
}
+ /**
+ * @expectedException BadMethodCallException
+ */
+ public function testItShouldThrowBadMethodCallException()
+ {
+ $model = new Model_User_Magic;
+ $model->unknown();
+ }
+
}

0 comments on commit af6ca57

Please sign in to comment.
Something went wrong with that request. Please try again.