Fix skip condition.

This commit is contained in:
mark_story 2012-11-14 21:42:40 -05:00
parent 9011b42bb4
commit 374631dc8c

View file

@ -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);
}