Browse Source

Skip more tests when openssl is not enabled.

5.2 environments on travis-ci don't have openssl enabled.
mark_story 13 years ago
parent
commit
12e2e1363d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/Cake/Test/Case/Network/Http/HttpSocketTest.php

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

@@ -1707,6 +1707,7 @@ class HttpSocketTest extends CakeTestCase {
  * @return void
  */
 	public function testVerifyPeer() {
+		$this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
 		$socket = new HttpSocket();
 		try {
 			$result = $socket->get('https://typography.com');