Skip to content

Commit

Permalink
Add skip if response is invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 15, 2012
1 parent b7e75a6 commit 9011b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
Expand Up @@ -1714,6 +1714,7 @@ public function testVerifyPeer() {
$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);
} }
Expand Down

0 comments on commit 9011b42

Please sign in to comment.