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
 function it_sets_the_kernel_on_the_context_if_its_kernel_aware(KernelAwareContext $context, HttpKernelInterface $kernel)
 {
     $context->setApp($kernel)->shouldBeCalled();
     $this->initializeContext($context);
 }