You are here

function IdenticalValueTokenSpec::it_generates_proper_string_representation_for_object in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/IdenticalValueTokenSpec.php \spec\Prophecy\Argument\Token\IdenticalValueTokenSpec::it_generates_proper_string_representation_for_object()

File

vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/IdenticalValueTokenSpec.php, line 142

Class

IdenticalValueTokenSpec

Namespace

spec\Prophecy\Argument\Token

Code

function it_generates_proper_string_representation_for_object($object) {
  $objHash = sprintf('%s:%s', get_class($object
    ->getWrappedObject()), spl_object_hash($object
    ->getWrappedObject()));
  $this
    ->beConstructedWith($object);
  $this
    ->__toString()
    ->shouldReturn("identical({$objHash} Object (\n    'objectProphecy' => Prophecy\\Prophecy\\ObjectProphecy Object (*Prophecy*)\n))");
}