8000 Use nulllogger instead of logger mock · symfony/symfony@578fb95 · GitHub
[go: up one dir, main page]

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)
0