From 0b6698ed2433f5ead378412fd2ae84fc33772180 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 26 Apr 2024 10:58:17 +0200 Subject: [PATCH] Remove calls to `getMockForAbstractClass()` --- Tests/Transport/Smtp/SmtpTransportTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Transport/Smtp/SmtpTransportTest.php b/Tests/Transport/Smtp/SmtpTransportTest.php index c54b050..7d435dc 100644 --- a/Tests/Transport/Smtp/SmtpTransportTest.php +++ b/Tests/Transport/Smtp/SmtpTransportTest.php @@ -158,7 +158,7 @@ public function testAssertResponseCodeWithNotValidCode() private function invokeAssertResponseCode(string $response, array $codes): void { - $transport = new SmtpTransport($this->getMockForAbstractClass(AbstractStream::class)); + $transport = new SmtpTransport($this->createStub(AbstractStream::class)); $m = new \ReflectionMethod($transport, 'assertResponseCode'); $m->setAccessible(true); $m->invoke($transport, $response, $codes);