You are here

function RevealerSpec::it_reveals_single_instance_of_ProphecyInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Prophecy/RevealerSpec.php \spec\Prophecy\Prophecy\RevealerSpec::it_reveals_single_instance_of_ProphecyInterface()

Parameters

\Prophecy\Prophecy\ProphecyInterface $prophecy:

\stdClass $object:

File

vendor/phpspec/prophecy/spec/Prophecy/Prophecy/RevealerSpec.php, line 18

Class

RevealerSpec

Namespace

spec\Prophecy\Prophecy

Code

function it_reveals_single_instance_of_ProphecyInterface($prophecy, $object) {
  $prophecy
    ->reveal()
    ->willReturn($object);
  $this
    ->reveal($prophecy)
    ->shouldReturn($object);
}