function ArrayEntryTokenSpec::it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEntryTokenSpec.php \spec\Prophecy\Argument\Token\ArrayEntryTokenSpec::it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry()
Parameters
\Prophecy\Argument\Token\ExactValueToken $key:
\Prophecy\Argument\Token\TokenInterface $value:
\ArrayAccess $object:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Argument/ Token/ ArrayEntryTokenSpec.php, line 213
Class
Namespace
spec\Prophecy\Argument\TokenCode
function it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry($key, $value, $object) {
$object
->offsetExists('key')
->willReturn(true);
$object
->offsetGet('key')
->willReturn('value');
$key
->getValue()
->willReturn('key');
$value
->scoreArgument('value')
->willReturn(false);
$key
->scoreArgument('key')
->willReturn(true);
$this
->scoreArgument($object)
->shouldBe(false);
}