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

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

public let ( ConsoleIO $io, PhpSpec\Exception\Fracture\CollaboratorNotFoundException $exception, ExampleEvent $exampleEvent, PhpSpec\Locator\ResourceManager $resources, GeneratorManager $generator, PhpSpec\Locator\Resource $resource )
$io PhpSpec\Console\ConsoleIO
$exception PhpSpec\Exception\Fracture\CollaboratorNotFoundException
$exampleEvent PhpSpec\Event\ExampleEvent
$resources PhpSpec\Locator\ResourceManager
$generator PhpSpec\CodeGenerator\GeneratorManager
$resource PhpSpec\Locator\Resource
    function let(ConsoleIO $io, CollaboratorNotFoundException $exception, ExampleEvent $exampleEvent, ResourceManager $resources, GeneratorManager $generator, Resource $resource)
    {
        $this->beConstructedWith($io, $resources, $generator);
        $resources->createResource(Argument::any())->willReturn($resource);
        $resource->getSpecNamespace()->willReturn('spec');
        $exampleEvent->getException()->willReturn($exception);
        $exception->getCollaboratorName()->willReturn('Example\\ExampleClass');
        $io->isCodeGenerationEnabled()->willReturn(true);
        $io->askConfirmation(Argument::any())->willReturn(false);
        $io->writeln(Argument::any())->willReturn(null);
    }