spec\PhpSpec\Wrapper\Subject\ExpectationFactorySpec::it_creates_negative_expectations PHP Метод

it_creates_negative_expectations() публичный Метод

public it_creates_negative_expectations ( MatcherManager $matchers, PhpSpec\Matcher\Matcher $matcher, Subject $subject )
$matchers PhpSpec\Runner\MatcherManager
$matcher PhpSpec\Matcher\Matcher
$subject PhpSpec\Wrapper\Subject
    function it_creates_negative_expectations(MatcherManager $matchers, Matcher $matcher, Subject $subject)
    {
        $matchers->find(Argument::cetera())->willReturn($matcher);
        $subject->__call('getWrappedObject', array())->willReturn(new \stdClass());
        $decoratedExpecation = $this->create('shouldNotbe', $subject);
        $decoratedExpecation->shouldHaveType('PhpSpec\\Wrapper\\Subject\\Expectation\\Decorator');
        $decoratedExpecation->getNestedExpectation()->shouldHaveType('PhpSpec\\Wrapper\\Subject\\Expectation\\Negative');
    }