You are here

function ArrayEntryTokenSpec::its_string_representation_tells_that_its_an_array_containing_the_key_value_pair in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEntryTokenSpec.php \spec\Prophecy\Argument\Token\ArrayEntryTokenSpec::its_string_representation_tells_that_its_an_array_containing_the_key_value_pair()

File

vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEntryTokenSpec.php, line 36

Class

ArrayEntryTokenSpec

Namespace

spec\Prophecy\Argument\Token

Code

function its_string_representation_tells_that_its_an_array_containing_the_key_value_pair($key, $value) {
  $key
    ->__toString()
    ->willReturn('key');
  $value
    ->__toString()
    ->willReturn('value');
  $this
    ->__toString()
    ->shouldBe('[..., key => value, ...]');
}