From 5963627d06dec4074e001edc38a7cf3b3d5529fd Mon Sep 17 00:00:00 2001 From: Maxime STEINHAUSSER Date: Fri, 4 Nov 2016 13:57:00 +0100 Subject: [PATCH] [SecurityBundle] Make the FirewallConfig class final --- .../Bundle/SecurityBundle/Security/FirewallConfig.php | 2 +- .../SecurityBundle/Tests/Security/FirewallContextTest.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallConfig.php index 4cc5ce17ba..56f43b31e8 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)