summaryrefslogtreecommitdiff
path: root/tests/Unit/Mail/Transport
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 10:45:00 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commitc74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch)
tree034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/Mail/Transport
parentb74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (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.php6
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 */