From c74fa7955d9392aea954c2e45ed4137fb2bebcbe Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 10:45:00 +0200 Subject: phpunit: Upgrade to version 8, fixed tests, formatting Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated --- tests/Unit/Mail/Transport/LogTransportTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Unit/Mail/Transport') 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 ', $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 */ -- cgit v1.2.3-54-g00ecf