Browse Source

Removing peer verification failure test.

Since we are not running a domain with an invalid certificate relying on
someone else to do that is quite unreliable.
mark_story 12 years ago
parent
commit
15f63e9c81
1 changed files with 0 additions and 19 deletions
  1. 0 19
      lib/Cake/Test/Case/Network/Http/HttpSocketTest.php

+ 0 - 19
lib/Cake/Test/Case/Network/Http/HttpSocketTest.php

@@ -1737,25 +1737,6 @@ class HttpSocketTest extends CakeTestCase {
 	}
 
 /**
- * Test that requests fail when peer verification fails.
- *
- * @return void
- */
-	public function testVerifyPeer() {
-		$this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
-		$socket = new HttpSocket();
-		try {
-			$socket->get('https://typography.com');
-			$this->markTestSkipped('Found valid certificate, was expecting invalid certificate.');
-		} catch (SocketException $e) {
-			$message = $e->getMessage();
-			$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);
-		}
-	}
-
-/**
  * Data provider for status codes.
  *
  * @return array