Browse Source

skips ssl test if using a proxy

thinkingmedia 10 years ago
parent
commit
cdc082001b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Network/SocketTest.php

+ 1 - 0
tests/TestCase/Network/SocketTest.php

@@ -441,6 +441,7 @@ class SocketTest extends TestCase
     public function testConfigContext()
     {
         $this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
+        $this->skipIf(!empty(getenv('http_proxy')) || !empty(getenv('https_proxy')), 'Proxy detected and cannot test SSL.');
         $config = [
             'host' => 'smtp.gmail.com',
             'port' => 465,