mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Add skip if response is invalid.
This commit is contained in:
parent
b7e75a6399
commit
9011b42bb4
1 changed files with 1 additions and 0 deletions
|
@ -1714,6 +1714,7 @@ class HttpSocketTest extends CakeTestCase {
|
|||
$this->markTestSkipped('Found valid certificate, was expecting invalid certificate.');
|
||||
} catch (SocketException $e) {
|
||||
$message = $e->getMessage();
|
||||
$this->skipIf(strpos($message, 'Invalid HTTP'), 'Invalid HTTP Response received, skipping.');
|
||||
$this->assertContains('Peer certificate CN', $message);
|
||||
$this->assertContains('Failed to enable crypto', $message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue