mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 02:22:39 +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.');
|
$this->markTestSkipped('Found valid certificate, was expecting invalid certificate.');
|
||||||
} catch (SocketException $e) {
|
} catch (SocketException $e) {
|
||||||
$message = $e->getMessage();
|
$message = $e->getMessage();
|
||||||
|
$this->skipIf(strpos($message, 'Invalid HTTP'), 'Invalid HTTP Response received, skipping.');
|
||||||
$this->assertContains('Peer certificate CN', $message);
|
$this->assertContains('Peer certificate CN', $message);
|
||||||
$this->assertContains('Failed to enable crypto', $message);
|
$this->assertContains('Failed to enable crypto', $message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue