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.'); }