/** * @expectedException \LogicException * @expectedExceptionMessage By its nature, "Nelmio\Alice\Definition\MethodCall\NoMethodCall::getCaller()" should not be called. */ public function testCannotGetCaller() { $call = new NoMethodCall(); $call->getCaller(); }