Skip to content
This repository
Browse code

Fix skip condition.

  • Loading branch information...
commit 374631dc8c1ba82568721719ceb400213ec832d5 1 parent 9011b42
Mark Story authored November 14, 2012
2  lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
@@ -1714,7 +1714,7 @@ public function testVerifyPeer() {
1714 1714
 			$this->markTestSkipped('Found valid certificate, was expecting invalid certificate.');
1715 1715
 		} catch (SocketException $e) {
1716 1716
 			$message = $e->getMessage();
1717  
-			$this->skipIf(strpos($message, 'Invalid HTTP'), 'Invalid HTTP Response received, skipping.');
  1717
+			$this->skipIf(strpos($message, 'Invalid HTTP') !== false, 'Invalid HTTP Response received, skipping.');
1718 1718
 			$this->assertContains('Peer certificate CN', $message);
1719 1719
 			$this->assertContains('Failed to enable crypto', $message);
1720 1720
 		}

0 notes on commit 374631d

Please sign in to comment.
Something went wrong with that request. Please try again.