minor #33068 Fix tests deprecation in 4.4 branch (jderusse)
This PR was merged into the 4.4 branch.
Discussion
----------
Fix tests deprecation in 4.4 branch
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #32844
| License | MIT
| Doc PR | NA
Fix deprecation in 4.4 branch
Commits
-------
05640456c6
Fix deprecation in 4.4 branche
This commit is contained in:
commit
ad9b03cd17
@ -305,7 +305,7 @@ class FlattenExceptionTest extends TestCase
|
|||||||
|
|
||||||
$flattened = FlattenException::createFromThrowable($exception);
|
$flattened = FlattenException::createFromThrowable($exception);
|
||||||
$trace = $flattened->getTrace();
|
$trace = $flattened->getTrace();
|
||||||
$this->assertContains('*DEEP NESTED ARRAY*', serialize($trace));
|
$this->assertStringContainsString('*DEEP NESTED ARRAY*', serialize($trace));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTooBigArray()
|
public function testTooBigArray()
|
||||||
@ -329,8 +329,8 @@ class FlattenExceptionTest extends TestCase
|
|||||||
|
|
||||||
$serializeTrace = serialize($trace);
|
$serializeTrace = serialize($trace);
|
||||||
|
|
||||||
$this->assertContains('*SKIPPED over 10000 entries*', $serializeTrace);
|
$this->assertStringContainsString('*SKIPPED over 10000 entries*', $serializeTrace);
|
||||||
$this->assertNotContains('*value1*', $serializeTrace);
|
$this->assertStringNotContainsString('*value1*', $serializeTrace);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAnonymousClass()
|
public function testAnonymousClass()
|
||||||
|
@ -55,7 +55,7 @@ abstract class SMimeTestCase extends TestCase
|
|||||||
protected function assertMessageHeaders(Message $message, RawMessage $originalMessage): void
|
protected function assertMessageHeaders(Message $message, RawMessage $originalMessage): void
|
||||||
{
|
{
|
||||||
$messageString = $message->toString();
|
$messageString = $message->toString();
|
||||||
self::assertNotContains('Bcc: ', $messageString, '', true);
|
self::assertStringNotContainsString('Bcc: ', $messageString, '', true);
|
||||||
|
|
||||||
if (!$originalMessage instanceof Message) {
|
if (!$originalMessage instanceof Message) {
|
||||||
return;
|
return;
|
||||||
@ -67,7 +67,7 @@ abstract class SMimeTestCase extends TestCase
|
|||||||
|
|
||||||
if ($originalMessage->getHeaders()->has('Subject')) {
|
if ($originalMessage->getHeaders()->has('Subject')) {
|
||||||
self::assertEquals($originalMessage->getHeaders()->get('Subject'), $message->getPreparedHeaders()->get('Subject'));
|
self::assertEquals($originalMessage->getHeaders()->get('Subject'), $message->getPreparedHeaders()->get('Subject'));
|
||||||
self::assertContains('Subject:', $messageString, '', true);
|
self::assertStringContainsString('Subject:', $messageString, '', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user