function its_constructor_throws_MethodNotFoundException_for_unexisting_method($objectProphecy) { $this->shouldThrow('Prophecy\\Exception\\Doubler\\MethodNotFoundException')->during('__construct', array($objectProphecy, 'getUnexisting', null)); }