public function isScopeActive($name)
 {
     return $this->delegate->isScopeActive($name);
 }
 /**
  * Tests the onKernelController method without the container scope.
  */
 public function testWithoutContainerScope()
 {
     $container = new ContainerBuilder();
     /** @var HttpKernelInterface $kernel */
     $kernel = $this->getMockForAbstractClass('Symfony\\Component\\HttpKernel\\Kernel', ['test', false]);
     $request = new Request();
     $request->attributes->set('_scope', ContaoCoreBundle::SCOPE_BACKEND);
     $listener = new ContainerScopeListener($this->container);
     $listener->onKernelRequest(new GetResponseEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST));
     $this->assertFalse($container->hasScope(ContaoCoreBundle::SCOPE_BACKEND));
     $this->assertFalse($container->isScopeActive(ContaoCoreBundle::SCOPE_BACKEND));
 }