11<?php
22
3+ use Clue \React \Socks ;
4+
35class ClientApiTest extends TestCase
46{
57 public function setUp ()
@@ -13,7 +15,7 @@ public function setUp()
1315
1416 $ this ->client = $ factory ->createClient ('127.0.0.1 ' , 9050 );
1517 }
16-
18+
1719 /**
1820 * @expectedException InvalidArgumentException
1921 */
@@ -42,7 +44,7 @@ public function testValidAuthVersion()
4244 $ this ->client ->setAuth ('username ' , 'password ' );
4345 $ this ->assertNull ($ this ->client ->setProtocolVersion (5 ));
4446 }
45-
47+
4648 /**
4749 * @expectedException UnexpectedValueException
4850 */
@@ -51,12 +53,12 @@ public function testInvalidCanNotSetAuthenticationForSocks4()
5153 $ this ->client ->setProtocolVersion (4 );
5254 $ this ->client ->setAuth ('username ' , 'password ' );
5355 }
54-
56+
5557 public function testUnsetAuth ()
5658 {
5759 // unset auth even if it's not set is valid
5860 $ this ->client ->unsetAuth ();
59-
61+
6062 $ this ->client ->setAuth ('username ' , 'password ' );
6163 $ this ->client ->unsetAuth ();
6264 }
@@ -106,7 +108,7 @@ public function testInvalidResolveRemoteVersion()
106108 $ this ->client ->setResolveLocal (false );
107109 $ this ->client ->setProtocolVersion ('4 ' );
108110 }
109-
111+
110112 public function testSetTimeout ()
111113 {
112114 $ this ->client ->setTimeout (1 );
@@ -118,7 +120,7 @@ public function testCreateHttpClient()
118120 {
119121 $ this ->assertInstanceOf ('\React\HttpClient\Client ' , $ this ->client ->createHttpClient ());
120122 }
121-
123+
122124 public function testCreateConnector ()
123125 {
124126 $ this ->assertInstanceOf ('\React\SocketClient\ConnectorInterface ' , $ this ->client ->createConnector ());
0 commit comments