Do not redefine TestHttpSocket

This commit is contained in:
Richard van den Berg 2015-12-15 16:58:12 +01:00
parent 077f157adf
commit e47b26aa6b

View file

@ -20,11 +20,11 @@ App::uses('HttpSocket', 'Network/Http');
App::uses('BasicAuthentication', 'Network/Http'); App::uses('BasicAuthentication', 'Network/Http');
/** /**
* class TestHttpSocket * class TestSslHttpSocket
* *
* @package Cake.Test.Case.Network.Http * @package Cake.Test.Case.Network.Http
*/ */
class TestHttpSocket extends HttpSocket { class TestSslHttpSocket extends HttpSocket {
/** /**
* testSetProxy method * testSetProxy method
@ -84,7 +84,7 @@ class BasicAuthenticationTest extends CakeTestCase {
* @return void * @return void
*/ */
public function testProxyAuthenticationSsl() { public function testProxyAuthenticationSsl() {
$http = new TestHttpSocket(); $http = new TestSslHttpSocket();
$http->request['uri']['scheme'] = 'https'; $http->request['uri']['scheme'] = 'https';
$proxy = array( $proxy = array(
'host' => 'localhost', 'host' => 'localhost',