@@ -24,37 +24,37 @@ class ClientTest_Client extends PHPUnit_Framework_TestCase
24
24
25
25
protected function setUp ()
26
26
{
27
- $ this ->host = " https://localhost:4010 " ;
27
+ $ this ->host = ' https://localhost:4010 ' ;
28
28
$ this ->headers = array (
29
29
'Content-Type: application/json ' ,
30
30
'Authorization: Bearer SG.XXXX '
31
31
);
32
- $ this ->client = new MockClient ($ this ->host , $ this ->headers , " /v3 " , null );
32
+ $ this ->client = new MockClient ($ this ->host , $ this ->headers , ' /v3 ' , null );
33
33
}
34
34
35
35
public function testInitialization ()
36
36
{
37
37
$ this ->assertEquals ($ this ->client ->host , $ this ->host );
38
38
$ this ->assertEquals ($ this ->client ->request_headers , $ this ->headers );
39
- $ this ->assertEquals ($ this ->client ->version , " /v3 " );
39
+ $ this ->assertEquals ($ this ->client ->version , ' /v3 ' );
40
40
$ this ->assertEquals ($ this ->client ->url_path , []);
41
41
$ this ->assertEquals ($ this ->client ->methods , ['delete ' , 'get ' , 'patch ' , 'post ' , 'put ' ]);
42
42
}
43
43
44
44
public function test_ ()
45
45
{
46
- $ client = $ this ->client ->_ (" test " );
47
- $ this ->assertEquals ($ client ->url_path , array (" test " ));
46
+ $ client = $ this ->client ->_ (' test ' );
47
+ $ this ->assertEquals ($ client ->url_path , array (' test ' ));
48
48
}
49
49
50
50
public function test__call ()
51
51
{
52
52
$ client = $ this ->client ->get ();
53
- $ this ->assertEquals ($ client ->url , " https://localhost:4010/v3/ " );
53
+ $ this ->assertEquals ($ client ->url , ' https://localhost:4010/v3/ ' );
54
54
55
55
$ query_params = array ('limit ' => 100 , 'offset ' => 0 );
56
56
$ client = $ this ->client ->get (null , $ query_params );
57
- $ this ->assertEquals ($ client ->url , " https://localhost:4010/v3/?limit=100&offset=0 " );
57
+ $ this ->assertEquals ($ client ->url , ' https://localhost:4010/v3/?limit=100&offset=0 ' );
58
58
59
59
$ request_body = array ('name ' => 'A New Hope ' );
60
60
$ client = $ this ->client ->get ($ request_body );
@@ -64,13 +64,13 @@ public function test__call()
64
64
$ client = $ this ->client ->get (null , null , $ request_headers );
65
65
$ this ->assertEquals ($ client ->request_headers , $ request_headers );
66
66
67
- $ client = $ this ->client ->version (" /v4 " );
68
- $ this ->assertEquals ($ client ->version , " /v4 " );
67
+ $ client = $ this ->client ->version (' /v4 ' );
68
+ $ this ->assertEquals ($ client ->version , ' /v4 ' );
69
69
70
70
$ client = $ this ->client ->path_to_endpoint ();
71
- $ this ->assertEquals ($ client ->url_path , array (" path_to_endpoint " ));
71
+ $ this ->assertEquals ($ client ->url_path , array (' path_to_endpoint ' ));
72
72
$ client = $ client ->one_more_segment ();
73
- $ this ->assertEquals ($ client ->url_path , array (" path_to_endpoint " , " one_more_segment " ));
73
+ $ this ->assertEquals ($ client ->url_path , array (' path_to_endpoint ' , ' one_more_segment ' ));
74
74
}
75
75
}
76
76
?>
0 commit comments