You are here

function ArrayEntryTokenSpec::it_scores_array_half_of_combined_scores_from_key_and_value_tokens in Zircon Profile 8

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

File

vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEntryTokenSpec.php, line 63

Class

ArrayEntryTokenSpec

Namespace

spec\Prophecy\Argument\Token

Code

function it_scores_array_half_of_combined_scores_from_key_and_value_tokens($key, $value) {
  $key
    ->scoreArgument('key')
    ->willReturn(4);
  $value
    ->scoreArgument('value')
    ->willReturn(6);
  $this
    ->scoreArgument(array(
    'key' => 'value',
  ))
    ->shouldBe(5);
}