function ArrayEveryEntryTokenSpec::it_scores_avg_of_scores_from_value_tokens in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEveryEntryTokenSpec.php \spec\Prophecy\Argument\Token\ArrayEveryEntryTokenSpec::it_scores_avg_of_scores_from_value_tokens()
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Argument/ Token/ ArrayEveryEntryTokenSpec.php, line 70
Class
Namespace
spec\Prophecy\Argument\TokenCode
function it_scores_avg_of_scores_from_value_tokens($value) {
$value
->scoreArgument('value1')
->willReturn(6);
$value
->scoreArgument('value2')
->willReturn(3);
$this
->scoreArgument(array(
'value1',
'value2',
))
->shouldBe(4.5);
}