diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-04-24 10:45:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-04-25 17:56:06 +0200 |
commit | c74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch) | |
tree | 034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/Mail/Transport | |
parent | b74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff) |
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/Mail/Transport')
-rw-r--r-- | tests/Unit/Mail/Transport/LogTransportTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/Mail/Transport/LogTransportTest.php b/tests/Unit/Mail/Transport/LogTransportTest.php index 5eb3a667..bf3ec5dc 100644 --- a/tests/Unit/Mail/Transport/LogTransportTest.php +++ b/tests/Unit/Mail/Transport/LogTransportTest.php @@ -35,13 +35,13 @@ class LogTransportTest extends TestCase ->method('debug') ->willReturnCallback(function ($message, $context = []) { foreach (array_keys($context) as $key) { - $this->assertContains(sprintf('{%s}', $key), $message); + $this->assertStringContainsString(sprintf('{%s}', $key), $message); } $this->assertEquals('Some subject', $context['title']); $this->assertEquals('foo@bar.batz,Lorem Ipsum <lor@em.ips>', $context['recipients']); - $this->assertContains('Head: er', $context['content']); - $this->assertContains('Message body', $context['content']); + $this->assertStringContainsString('Head: er', $context['content']); + $this->assertStringContainsString('Message body', $context['content']); }); /** @var LogTransport|MockObject $transport */ |