You are here

function LogicalAndTokenSpec::it_scores_the_maximum_score_from_all_scores_returned_by_tokens in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/LogicalAndTokenSpec.php \spec\Prophecy\Argument\Token\LogicalAndTokenSpec::it_scores_the_maximum_score_from_all_scores_returned_by_tokens()

Parameters

\Prophecy\Argument\Token\TokenInterface $token1:

\Prophecy\Argument\Token\TokenInterface $token2:

File

vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/LogicalAndTokenSpec.php, line 47

Class

LogicalAndTokenSpec

Namespace

spec\Prophecy\Argument\Token

Code

function it_scores_the_maximum_score_from_all_scores_returned_by_tokens($token1, $token2) {
  $token1
    ->scoreArgument(1)
    ->willReturn(10);
  $token2
    ->scoreArgument(1)
    ->willReturn(5);
  $this
    ->beConstructedWith(array(
    $token1,
    $token2,
  ));
  $this
    ->scoreArgument(1)
    ->shouldReturn(10);
}