spec\PhpSpec\Matcher\TypeMatcherSpec::it_does_not_match_wrong_interface PHP Method

it_does_not_match_wrong_interface() public method

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