function it_should_detect_a_method_if_there_is_no_magic_caller_but_wrapped_inspector_finds_one(AccessInspector $accessInspector) { $accessInspector->isMethodCallable(new \StdClass(), 'foo')->willReturn(true); $this->isMethodCallable(new \StdClass(), 'foo')->shouldReturn(true); }