function it_throws_exception_if_has_checker_method_not_found() { $subject = new \ReflectionClass($this); $this->shouldThrow('PHPSpec2\\Exception\\MethodNotFoundException')->duringPositiveMatch('haveAnything', $subject, array('str')); }