spec\PhpSpec\Matcher\TraversableCountMatcherSpec::it_does_not_positive_match_wrong_generator_count PHP Method

it_does_not_positive_match_wrong_generator_count() public method

    function it_does_not_positive_match_wrong_generator_count()
    {
        $this->shouldThrow(new FailureException('Expected traversable to have 2 items, but got more than that.'))->during('positiveMatch', ['haveCount', $this->createGeneratorWithCount(3), [2]]);
        $this->shouldThrow(new FailureException('Expected traversable to have 2 items, but got less than that.'))->during('positiveMatch', ['haveCount', $this->createGeneratorWithCount(1), [2]]);
    }