From 561d198b6bfc21195d1defff28ce26aa8c8f90c6 Mon Sep 17 00:00:00 2001 From: hectorhammett Date: Wed, 11 Dec 2024 00:42:25 +0000 Subject: [PATCH] Remove unused mock class --- tests/Logging/LoggingTraitTest.php | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/tests/Logging/LoggingTraitTest.php b/tests/Logging/LoggingTraitTest.php index 211fc4d0f..c6058fee7 100644 --- a/tests/Logging/LoggingTraitTest.php +++ b/tests/Logging/LoggingTraitTest.php @@ -47,7 +47,7 @@ public function __construct() public function testLogRequest() { $event = $this->getNewLogEvent(); - $this->loggerContainer->logRequestEvent($event); + $this->loggerContainer->logRequest($event); $buffer = $this->getActualOutput(); $jsonParsed = json_decode($buffer, true); @@ -64,7 +64,7 @@ public function testRequestWithoutJwtShouldNotPrintAJwt() { $event = $this->getNewLogEvent(); $event->headers = ['no jwt' => true]; - $this->loggerContainer->logRequestEvent($event); + $this->loggerContainer->logRequest($event); $buffer = $this->getActualOutput(); $jsonParsed = json_decode($buffer, true); @@ -76,7 +76,7 @@ public function testLogResponse() { $event = $this->getNewLogEvent(); $event->headers = ['Thisis' => 'a header']; - $this->loggerContainer->logResponseEvent($event); + $this->loggerContainer->logResponse($event); $buffer = $this->getActualOutput(); @@ -107,24 +107,3 @@ private function getNewLogEvent(): RpcLogEvent return $event; } } - -class MockClassWithLogger -{ - use LoggingTrait; - private LoggerInterface $logger; - - public function __construct() - { - $this->logger = new StdOutLogger(); - } - - public function logRequestEvent(RpcLogEvent $event): void - { - $this->logRequest($event); - } - - public function logResponseEvent(RpcLogEvent $event): void - { - $this->logResponse($event); - } -}