Skip to content

Commit 3905068

Browse files
Merge branch '6.2' into 6.3
* 6.2: [Notifier] Replace tests dummy instances by already in place mocks Use PHPUnit 9.6 to run Symfony's test suite [DependencyInjection] Add doc for RUNTIME_EXCEPTION_ON_INVALID_REFERENCE behavior
2 parents 212aa06 + 0aea286 commit 3905068

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/SmsapiTransportTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@
1616
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransport;
1717
use Symfony\Component\Notifier\Exception\TransportException;
1818
use Symfony\Component\Notifier\Message\ChatMessage;
19-
use Symfony\Component\Notifier\Message\MessageInterface;
2019
use Symfony\Component\Notifier\Message\SmsMessage;
2120
use Symfony\Component\Notifier\Test\TransportTestCase;
22-
use Symfony\Component\Notifier\Tests\Fixtures\DummyHttpClient;
23-
use Symfony\Component\Notifier\Tests\Fixtures\DummyMessage;
24-
use Symfony\Component\Notifier\Transport\TransportInterface;
21+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2522
use Symfony\Contracts\HttpClient\HttpClientInterface;
2623

2724
final class SmsapiTransportTest extends TransportTestCase
2825
{
2926
public static function createTransport(HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport
3027
{
31-
return (new SmsapiTransport('testToken', $from, $client ?? new DummyHttpClient()))->setHost('test.host')->setFast($fast)->setTest($test);
28+
return (new SmsapiTransport('testToken', $from, $client ?? new MockHttpClient()))->setHost('test.host')->setFast($fast)->setTest($test);
3229
}
3330

3431
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)