spec\Prophecy\Argument\Token\ArrayEntryTokenSpec::it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry PHP Метод

it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry() публичный Метод

public it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry ( Prophecy\Argument\Token\ExactValueToken $key, Prophecy\Argument\Token\TokenInterface $value, ArrayAccess $object )
$key Prophecy\Argument\Token\ExactValueToken
$value Prophecy\Argument\Token\TokenInterface
$object ArrayAccess
    function it_does_not_score_array_accessible_object_if_key_and_value_tokens_do_not_score_same_entry(ExactValueToken $key, TokenInterface $value, \ArrayAccess $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);
    }