Skip to content
Browse files

Add skip if response is invalid.

  • Loading branch information...
markstory committed Nov 15, 2012
1 parent b7e75a6 commit 9011b42bb4329e67e40c864c80ac6ba88d92e934
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
@@ -1714,6 +1714,7 @@ public function testVerifyPeer() {
$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);

0 comments on commit 9011b42

Please sign in to comment.
You can’t perform that action at this time.