public it_does_not_score_if_either_of_tokens_does_not_score ( Prophecy\Argument\Token\TokenInterface $token1, Prophecy\Argument\Token\TokenInterface $token2 ) | ||
$token1 | Prophecy\Argument\Token\TokenInterface | |
$token2 | Prophecy\Argument\Token\TokenInterface |
function it_does_not_score_if_either_of_tokens_does_not_score(TokenInterface $token1, TokenInterface $token2)
{
$token1->scoreArgument(1)->willReturn(10);
$token1->scoreArgument(2)->willReturn(false);
$token2->scoreArgument(1)->willReturn(false);
$token2->scoreArgument(2)->willReturn(10);
$this->beConstructedWith(array($token1, $token2));
$this->scoreArgument(1)->shouldReturn(false);
$this->scoreArgument(2)->shouldReturn(false);
}