getConfig() public method

public getConfig ( )
Ejemplo 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());
 }
Ejemplo n.º 2
0
 public function testGetters()
 {
     $config = new FirewallConfig('main', 'user_checker', 'request_matcher');
     $exceptionListener = $this->getExceptionListenerMock();
     $listeners = array($this->getMockBuilder(ListenerInterface::class)->disableOriginalConstructor()->getMock());
     $context = new FirewallContext($listeners, $exceptionListener, $config);
     $this->assertEquals(array($listeners, $exceptionListener), $context->getListeners());
     $this->assertEquals($config, $context->getConfig());
 }