function it_does_not_match_wrong_class(ArrayObject $object) { $this->shouldThrow(new FailureException('Expected an instance of stdClass, but got object.'))->duringPositiveMatch('haveType', $object, array('stdClass')); }