Example #1
0
 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'));
 }