You are here

function MethodProphecySpec::let in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/spec/Prophecy/Prophecy/MethodProphecySpec.php \spec\Prophecy\Prophecy\MethodProphecySpec::let()

Parameters

\Prophecy\Prophecy\ObjectProphecy $objectProphecy:

\ReflectionClass $reflection:

File

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

Class

MethodProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function let($objectProphecy, $reflection) {
  $objectProphecy
    ->reveal()
    ->willReturn($reflection);
  $this
    ->beConstructedWith($objectProphecy, 'getName', null);
}