Exemplo n.º 1
0
 public function testCallThrowsBadMethodCallException()
 {
     $presenter = new Presenter(new stdClass());
     try {
         $presenter->someInvalidMethod();
     } catch (BadMethodCallException $e) {
         $this->assertRegExp("/Presenter::someInvalidMethod\\(\\)/", $e->getMessage());
         return;
     }
     $this->fail('BadMethodCallException has not been raised.');
 }