Laracasts\Behat\Context\KernelAwareContext::setApp PHP Method

setApp() public method

Set the kernel instance on the context.
public setApp ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel ) : mixed
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
return mixed
    public function setApp(HttpKernelInterface $kernel);

Usage Example

 function it_sets_the_kernel_on_the_context_if_its_kernel_aware(KernelAwareContext $context, HttpKernelInterface $kernel)
 {
     $context->setApp($kernel)->shouldBeCalled();
     $this->initializeContext($context);
 }
KernelAwareContext