spec\Prophecy\Argument\ArgumentsWildcardSpec::it_should_return_match_score_based_on_all_tokens_score PHP Метод

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

public it_should_return_match_score_based_on_all_tokens_score ( Prophecy\Argument\Token\TokenInterface $token1, Prophecy\Argument\Token\TokenInterface $token2, Prophecy\Argument\Token\TokenInterface $token3 )
$token1 Prophecy\Argument\Token\TokenInterface
$token2 Prophecy\Argument\Token\TokenInterface
$token3 Prophecy\Argument\Token\TokenInterface
    function it_should_return_match_score_based_on_all_tokens_score(TokenInterface $token1, TokenInterface $token2, TokenInterface $token3)
    {
        $token1->scoreArgument('one')->willReturn(3);
        $token1->isLast()->willReturn(false);
        $token2->scoreArgument(2)->willReturn(5);
        $token2->isLast()->willReturn(false);
        $token3->scoreArgument($obj = new \stdClass())->willReturn(10);
        $token3->isLast()->willReturn(false);
        $this->beConstructedWith(array($token1, $token2, $token3));
        $this->scoreArguments(array('one', 2, $obj))->shouldReturn(18);
    }