Permalink
Browse files

Fix skip condition.

  • Loading branch information...
1 parent 9011b42 commit 374631dc8c1ba82568721719ceb400213ec832d5 @markstory markstory committed Nov 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
View
2 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
@@ -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);
}

0 comments on commit 374631d

Please sign in to comment.