spec\PhpSpec\Listener\MethodReturnedNullListenerSpec::let PHP Метод

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

public let ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resourceManager, GeneratorManager $generatorManager, ExampleEvent $exampleEvent, PhpSpec\Exception\Example\NotEqualException $notEqualException, MethodAnalyser $methodAnalyser )
$io PhpSpec\Console\ConsoleIO
$resourceManager PhpSpec\Locator\ResourceManager
$generatorManager PhpSpec\CodeGenerator\GeneratorManager
$exampleEvent PhpSpec\Event\ExampleEvent
$notEqualException PhpSpec\Exception\Example\NotEqualException
$methodAnalyser PhpSpec\Util\MethodAnalyser
    function let(ConsoleIO $io, ResourceManager $resourceManager, GeneratorManager $generatorManager, ExampleEvent $exampleEvent, NotEqualException $notEqualException, MethodAnalyser $methodAnalyser)
    {
        $this->beConstructedWith($io, $resourceManager, $generatorManager, $methodAnalyser);
        $exampleEvent->getException()->willReturn($notEqualException);
        $notEqualException->getActual()->willReturn(null);
        $notEqualException->getExpected()->willReturn(100);
        $io->isCodeGenerationEnabled()->willReturn(true);
        $io->askConfirmation(Argument::any())->willReturn(false);
        $io->isFakingEnabled()->willReturn(true);
        $methodAnalyser->methodIsEmpty(Argument::cetera())->willReturn(true);
        $methodAnalyser->getMethodOwnerName(Argument::cetera())->willReturn('Foo');
    }