From 374631dc8c1ba82568721719ceb400213ec832d5 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 14 Nov 2012 21:42:40 -0500 Subject: [PATCH] Fix skip condition. --- lib/Cake/Test/Case/Network/Http/HttpSocketTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php index 7370e2b7d..8b74d2c4a 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php @@ -1714,7 +1714,7 @@ class HttpSocketTest extends CakeTestCase { $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); }