Skip to content

Commit f054d14

Browse files
committed
PHPUnit legacy vs current
1 parent 454bd66 commit f054d14

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/Query/TcpTransportExecutorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,11 @@ function ($e) use (&$exception) {
10491049
/** @var \RuntimeException $exception */
10501050
$this->assertInstanceOf('RuntimeException', $exception);
10511051
$this->assertStringStartsWith('DNS query for google.com (A) failed: SSL operation failed with code ', $exception->getMessage());
1052-
$this->assertStringContainsString('certificate verify failed', $exception->getMessage());
1052+
if (method_exists($this, 'assertStringContainsString')) {
1053+
$this->assertStringContainsString('certificate verify failed', $exception->getMessage());
1054+
} else {
1055+
$this->assertContains('certificate verify failed', $exception->getMessage());
1056+
}
10531057
}
10541058

10551059
public function testCryptoEnabledAfterConnectingToTlsDnsServer()

0 commit comments

Comments
 (0)