Skip to content

Commit 11f240a

Browse files
String quote consistency
1 parent 65e2ee0 commit 11f240a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/unit/ClientTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,37 @@ class ClientTest_Client extends PHPUnit_Framework_TestCase
2424

2525
protected function setUp()
2626
{
27-
$this->host = "https://localhost:4010";
27+
$this->host = 'https://localhost:4010';
2828
$this->headers = array(
2929
'Content-Type: application/json',
3030
'Authorization: Bearer SG.XXXX'
3131
);
32-
$this->client = new MockClient($this->host, $this->headers, "/v3", null);
32+
$this->client = new MockClient($this->host, $this->headers, '/v3', null);
3333
}
3434

3535
public function testInitialization()
3636
{
3737
$this->assertEquals($this->client->host, $this->host);
3838
$this->assertEquals($this->client->request_headers, $this->headers);
39-
$this->assertEquals($this->client->version, "/v3");
39+
$this->assertEquals($this->client->version, '/v3');
4040
$this->assertEquals($this->client->url_path, []);
4141
$this->assertEquals($this->client->methods, ['delete', 'get', 'patch', 'post', 'put']);
4242
}
4343

4444
public function test_()
4545
{
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'));
4848
}
4949

5050
public function test__call()
5151
{
5252
$client = $this->client->get();
53-
$this->assertEquals($client->url, "https://localhost:4010/v3/");
53+
$this->assertEquals($client->url, 'https://localhost:4010/v3/');
5454

5555
$query_params = array('limit' => 100, 'offset' => 0);
5656
$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');
5858

5959
$request_body = array('name' => 'A New Hope');
6060
$client = $this->client->get($request_body);
@@ -64,13 +64,13 @@ public function test__call()
6464
$client = $this->client->get(null, null, $request_headers);
6565
$this->assertEquals($client->request_headers, $request_headers);
6666

67-
$client = $this->client->version("/v4");
68-
$this->assertEquals($client->version, "/v4");
67+
$client = $this->client->version('/v4');
68+
$this->assertEquals($client->version, '/v4');
6969

7070
$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'));
7272
$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'));
7474
}
7575
}
7676
?>

0 commit comments

Comments
 (0)