Skip to content

Commit 2b0f229

Browse files
MarioBlazeknicolas-grekas
authored andcommitted
Remove deprecated assertContains
1 parent a6815d2 commit 2b0f229

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/TransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function testFromDsnAmazonSes()
244244
$this->assertInstanceOf(Amazon\Smtp\SesTransport::class, $transport);
245245
$this->assertEquals('u$er', $transport->getUsername());
246246
$this->assertEquals('pa$s', $transport->getPassword());
247-
$this->assertContains('.sun.', $transport->getStream()->getHost());
247+
$this->assertStringContainsString('.sun.', $transport->getStream()->getHost());
248248
$this->assertProperties($transport, $dispatcher, $logger);
249249

250250
$client = $this->createMock(HttpClientInterface::class);

TransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function testFromDsnAmazonSes()
244244
$this->assertInstanceOf(Amazon\Smtp\SesTransport::class, $transport);
245245
$this->assertEquals('u$er', $transport->getUsername());
246246
$this->assertEquals('pa$s', $transport->getPassword());
247-
$this->assertContains('.sun.', $transport->getStream()->getHost());
247+
$this->assertStringContainsString('.sun.', $transport->getStream()->getHost());
248248
$this->assertProperties($transport, $dispatcher, $logger);
249249

250250
$client = $this->createMock(HttpClientInterface::class);

0 commit comments

Comments
 (0)