getContext() public method

Deprecation: since version 3.3, will be removed in 4.0. Use {@link getListeners()} instead.
public getContext ( )
Exemplo n.º 1
0
 public function testGetters()
 {
     $config = $this->getMockBuilder(FirewallConfig::class)->disableOriginalConstructor()->getMock();
     $exceptionListener = $this->getMockBuilder(ExceptionListener::class)->disableOriginalConstructor()->getMock();
     $listeners = array($this->getMockBuilder(ListenerInterface::class)->disableOriginalConstructor()->getMock());
     $context = new FirewallContext($listeners, $exceptionListener, $config);
     $this->assertEquals(array($listeners, $exceptionListener), $context->getContext());
     $this->assertEquals($config, $context->getConfig());
 }