Skip to content

Commit 275ef67

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Notifier] Replace tests dummy instances by already in place mocks
1 parent 6fe7a2d commit 275ef67

7 files changed

+1
-188
lines changed

Test/TransportTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class TransportTestCase extends TestCase
2727
protected const CUSTOM_HOST = 'host.test';
2828
protected const CUSTOM_PORT = 42;
2929

30-
abstract static public function createTransport(HttpClientInterface $client = null): TransportInterface;
30+
abstract public static function createTransport(HttpClientInterface $client = null): TransportInterface;
3131

3232
/**
3333
* @return iterable<array{0: string, 1: TransportInterface}>

Tests/Fixtures/DummyHttpClient.php

-31
This file was deleted.

Tests/Fixtures/DummyHub.php

-41
This file was deleted.

Tests/Fixtures/DummyLogger.php

-53
This file was deleted.

Tests/Fixtures/DummyMailer.php

-23
This file was deleted.

Tests/Fixtures/DummyMessage.php

-38
This file was deleted.

Tests/Fixtures/TestOptions.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Notifier\Tests\Fixtures;
1313

14-
use Symfony\Component\Notifier\Message\MessageInterface;
1514
use Symfony\Component\Notifier\Message\MessageOptionsInterface;
1615

1716
final class TestOptions implements MessageOptionsInterface

0 commit comments

Comments
 (0)