Skip to content

Commit

Permalink
Remove calls to getMockForAbstractClass()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed May 15, 2024
1 parent 85ba4ca commit 0b6698e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Transport/Smtp/SmtpTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b6698e

Please sign in to comment.