Skip to content

Commit 578fb95

Browse files
Use nulllogger instead of logger mock
1 parent b45560c commit 578fb95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Security\Http\Tests\Firewall;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Psr\Log\LoggerInterface;
15+
use Psr\Log\NullLogger;
1616
use Symfony\Component\HttpFoundation\HeaderBag;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Symfony\Component\HttpFoundation\Response;
@@ -175,9 +175,8 @@ public function testSupportsWithoutHeaders()
175175
;
176176

177177
$entryPoint = $this->createMock(AuthenticationEntryPointInterface::class);
178-
$logger = $this->createMock(LoggerInterface::class);
179178

180-
$listener = new ChannelListener($accessMap, $entryPoint, $logger);
179+
$listener = new ChannelListener($accessMap, $entryPoint, new NullLogger());
181180

182181
$this->assertTrue($listener->supports($request));
183182
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy