Skip to content

Commit

Permalink
PHPUnit legacy vs current
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Aug 4, 2022
1 parent 454bd66 commit f054d14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Query/TcpTransportExecutorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,11 @@ function ($e) use (&$exception) {
/** @var \RuntimeException $exception */
$this->assertInstanceOf('RuntimeException', $exception);
$this->assertStringStartsWith('DNS query for google.com (A) failed: SSL operation failed with code ', $exception->getMessage());
$this->assertStringContainsString('certificate verify failed', $exception->getMessage());
if (method_exists($this, 'assertStringContainsString')) {
$this->assertStringContainsString('certificate verify failed', $exception->getMessage());
} else {
$this->assertContains('certificate verify failed', $exception->getMessage());
}
}

public function testCryptoEnabledAfterConnectingToTlsDnsServer()
Expand Down

0 comments on commit f054d14

Please sign in to comment.