function ArrayEntryTokenSpec::it_does_not_score_array_accessible_object_if_it_has_no_offset_with_key_token_value 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_it_has_no_offset_with_key_token_value()
Parameters
\Prophecy\Argument\Token\ExactValueToken $key:
\ArrayAccess $object:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Argument/ Token/ ArrayEntryTokenSpec.php, line 201
Class
Namespace
spec\Prophecy\Argument\TokenCode
function it_does_not_score_array_accessible_object_if_it_has_no_offset_with_key_token_value($key, $object) {
$object
->offsetExists('key')
->willReturn(false);
$key
->getValue()
->willReturn('key');
$this
->scoreArgument($object)
->shouldBe(false);
}