[SecurityBundle] Make the FirewallConfig class final

This commit is contained in:
Maxime STEINHAUSSER 2016-11-04 13:57:00 +01:00
parent 9e2ad932e9
commit 5963627d06
2 changed files with 2 additions and 5 deletions

View File

@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Security;
/** /**
* @author Robin Chalas <robin.chalas@gmail.com> * @author Robin Chalas <robin.chalas@gmail.com>
*/ */
class FirewallConfig final class FirewallConfig
{ {
private $name; private $name;
private $requestMatcher; private $requestMatcher;

View File

@ -20,10 +20,7 @@ class FirewallContextTest extends \PHPUnit_Framework_TestCase
{ {
public function testGetters() public function testGetters()
{ {
$config = $this $config = new FirewallConfig('main', 'request_matcher');
->getMockBuilder(FirewallConfig::class)
->disableOriginalConstructor()
->getMock();
$exceptionListener = $this $exceptionListener = $this
->getMockBuilder(ExceptionListener::class) ->getMockBuilder(ExceptionListener::class)