PHP Класс spec\Prophecy\Argument\Token\ArrayEntryTokenSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_accepts_any_key_token_type_to_score_object_that_is_both_traversable_and_array_accessible ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, ArrayIterator $object )
it_does_not_score_array_accessible_object_if_it_has_no_offset_with_key_token_value ( Prophecy\Argument\Token\ExactValueToken $key, ArrayAccess $object )
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 )
it_does_not_score_array_if_key_and_value_tokens_do_not_score_same_entry ( $key, $value )
it_does_not_score_empty_array ( )
it_does_not_score_if_argument_is_neither_array_nor_traversable_nor_array_accessible ( )
it_does_not_score_traversable_object_if_key_and_value_tokens_do_not_score_same_entry ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, Iterator $object )
it_does_not_score_traversable_object_without_entries ( Iterator $object )
it_holds_key_and_value ( $key, $value )
it_implements_TokenInterface ( )
it_is_not_last ( )
it_scores_array_accessible_object_half_of_combined_scores_from_key_and_value_tokens ( Prophecy\Argument\Token\ExactValueToken $key, Prophecy\Argument\Token\TokenInterface $value, ArrayAccess $object )
it_scores_array_half_of_combined_scores_from_key_and_value_tokens ( $key, $value )
it_scores_traversable_object_half_of_combined_scores_from_key_and_value_tokens ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, Iterator $object )
it_throws_exception_during_scoring_of_array_accessible_object_if_key_is_not_ExactValueToken ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, ArrayAccess $object )
it_wraps_non_token_key_into_ExactValueToken ( stdClass $object, Prophecy\Argument\Token\TokenInterface $value )
it_wraps_non_token_value_into_ExactValueToken ( Prophecy\Argument\Token\TokenInterface $key, stdClass $object )
its_score_is_capped_at_8 ( $key, $value )
its_string_representation_tells_that_its_an_array_containing_the_key_value_pair ( $key, $value )
let ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value )

Описание методов

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

public it_accepts_any_key_token_type_to_score_object_that_is_both_traversable_and_array_accessible ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, ArrayIterator $object )
$key Prophecy\Argument\Token\TokenInterface
$value Prophecy\Argument\Token\TokenInterface
$object ArrayIterator

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

public it_does_not_score_array_accessible_object_if_it_has_no_offset_with_key_token_value ( Prophecy\Argument\Token\ExactValueToken $key, ArrayAccess $object )
$key Prophecy\Argument\Token\ExactValueToken
$object ArrayAccess

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

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

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

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

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

public it_does_not_score_traversable_object_if_key_and_value_tokens_do_not_score_same_entry ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, Iterator $object )
$key Prophecy\Argument\Token\TokenInterface
$value Prophecy\Argument\Token\TokenInterface
$object Iterator

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

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

public it_holds_key_and_value ( $key, $value )

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

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

public it_is_not_last ( )

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

public it_scores_array_accessible_object_half_of_combined_scores_from_key_and_value_tokens ( Prophecy\Argument\Token\ExactValueToken $key, Prophecy\Argument\Token\TokenInterface $value, ArrayAccess $object )
$key Prophecy\Argument\Token\ExactValueToken
$value Prophecy\Argument\Token\TokenInterface
$object ArrayAccess

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

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

public it_scores_traversable_object_half_of_combined_scores_from_key_and_value_tokens ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, Iterator $object )
$key Prophecy\Argument\Token\TokenInterface
$value Prophecy\Argument\Token\TokenInterface
$object Iterator

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

public it_throws_exception_during_scoring_of_array_accessible_object_if_key_is_not_ExactValueToken ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value, ArrayAccess $object )
$key Prophecy\Argument\Token\TokenInterface
$value Prophecy\Argument\Token\TokenInterface
$object ArrayAccess

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

public it_wraps_non_token_key_into_ExactValueToken ( stdClass $object, Prophecy\Argument\Token\TokenInterface $value )
$object stdClass
$value Prophecy\Argument\Token\TokenInterface

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

public it_wraps_non_token_value_into_ExactValueToken ( Prophecy\Argument\Token\TokenInterface $key, stdClass $object )
$key Prophecy\Argument\Token\TokenInterface
$object stdClass

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

public its_score_is_capped_at_8 ( $key, $value )

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

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

public let ( Prophecy\Argument\Token\TokenInterface $key, Prophecy\Argument\Token\TokenInterface $value )
$key Prophecy\Argument\Token\TokenInterface
$value Prophecy\Argument\Token\TokenInterface