diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php index b720bf9cad..dc48c459a2 100644 --- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php +++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php @@ -14,7 +14,7 @@ namespace Symfony\Bundle\SecurityBundle\Security; /** * @author Robin Chalas */ -class FirewallConfig +final class FirewallConfig { private $name; private $requestMatcher; diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php index 86aecc1aa2..cce2a5b47f 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Security/FirewallContextTest.php @@ -20,10 +20,7 @@ class FirewallContextTest extends \PHPUnit_Framework_TestCase { public function testGetters() { - $config = $this - ->getMockBuilder(FirewallConfig::class) - ->disableOriginalConstructor() - ->getMock(); + $config = new FirewallConfig('main', 'request_matcher'); $exceptionListener = $this ->getMockBuilder(ExceptionListener::class)