Skip to content

Commit

Permalink
Fix skip condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 15, 2012
1 parent 9011b42 commit 374631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
Expand Up @@ -1714,7 +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->skipIf(strpos($message, 'Invalid HTTP') !== false, 'Invalid HTTP Response received, skipping.');
$this->assertContains('Peer certificate CN', $message);
$this->assertContains('Failed to enable crypto', $message);
}
Expand Down

0 comments on commit 374631d

Please sign in to comment.