public function testRespondsToInstanceMethod() { $this->assertFalse(MockPost::respondsTo('foo_Bar_Baz')); MockPost::instanceMethods(array('foo_Bar_Baz' => function ($entity) { })); $this->assertTrue(MockPost::respondsTo('foo_Bar_Baz')); }