summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-03-20 16:29:34 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-03-20 16:29:34 -0700
commit11f240a74ea6d64099ebafd68e2fb468934eb0b8 (patch)
tree201ff5a0351fbe230c3bb8fb543e1a5806126f1a
parent65e2ee0cca1577bd8438115fe4f8293d6ac95ec8 (diff)
downloadphp-http-client-11f240a74ea6d64099ebafd68e2fb468934eb0b8.zip
php-http-client-11f240a74ea6d64099ebafd68e2fb468934eb0b8.tar.gz
php-http-client-11f240a74ea6d64099ebafd68e2fb468934eb0b8.tar.bz2
String quote consistency
-rw-r--r--test/unit/ClientTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/unit/ClientTest.php b/test/unit/ClientTest.php
index d06962f..51cfd76 100644
--- a/test/unit/ClientTest.php
+++ b/test/unit/ClientTest.php
@@ -24,37 +24,37 @@ class ClientTest_Client extends PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->host = "https://localhost:4010";
+ $this->host = 'https://localhost:4010';
$this->headers = array(
'Content-Type: application/json',
'Authorization: Bearer SG.XXXX'
);
- $this->client = new MockClient($this->host, $this->headers, "/v3", null);
+ $this->client = new MockClient($this->host, $this->headers, '/v3', null);
}
public function testInitialization()
{
$this->assertEquals($this->client->host, $this->host);
$this->assertEquals($this->client->request_headers, $this->headers);
- $this->assertEquals($this->client->version, "/v3");
+ $this->assertEquals($this->client->version, '/v3');
$this->assertEquals($this->client->url_path, []);
$this->assertEquals($this->client->methods, ['delete', 'get', 'patch', 'post', 'put']);
}
public function test_()
{
- $client = $this->client->_("test");
- $this->assertEquals($client->url_path, array("test"));
+ $client = $this->client->_('test');
+ $this->assertEquals($client->url_path, array('test'));
}
public function test__call()
{
$client = $this->client->get();
- $this->assertEquals($client->url, "https://localhost:4010/v3/");
+ $this->assertEquals($client->url, 'https://localhost:4010/v3/');
$query_params = array('limit' => 100, 'offset' => 0);
$client = $this->client->get(null, $query_params);
- $this->assertEquals($client->url, "https://localhost:4010/v3/?limit=100&offset=0");
+ $this->assertEquals($client->url, 'https://localhost:4010/v3/?limit=100&offset=0');
$request_body = array('name' => 'A New Hope');
$client = $this->client->get($request_body);
@@ -64,13 +64,13 @@ class ClientTest_Client extends PHPUnit_Framework_TestCase
$client = $this->client->get(null, null, $request_headers);
$this->assertEquals($client->request_headers, $request_headers);
- $client = $this->client->version("/v4");
- $this->assertEquals($client->version, "/v4");
+ $client = $this->client->version('/v4');
+ $this->assertEquals($client->version, '/v4');
$client = $this->client->path_to_endpoint();
- $this->assertEquals($client->url_path, array("path_to_endpoint"));
+ $this->assertEquals($client->url_path, array('path_to_endpoint'));
$client = $client->one_more_segment();
- $this->assertEquals($client->url_path, array("path_to_endpoint", "one_more_segment"));
+ $this->assertEquals($client->url_path, array('path_to_endpoint', 'one_more_segment'));
}
}
?> \ No newline at end of file