Skip to content

Commit 5efad64

Browse files
author
lol768
committed
Use single quotes for strings
1 parent 4e62664 commit 5efad64

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/Github/Tests/Api/DeploymentTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ class DeploymentTest extends TestCase
1010
public function shouldCreateDeployment()
1111
{
1212
$api = $this->getApiMock();
13-
$deploymentData = array("ref" => "fd6a5f9e5a430dddae8d6a8ea378f913d3a766f9");
13+
$deploymentData = array('ref' => 'fd6a5f9e5a430dddae8d6a8ea378f913d3a766f9');
1414
$api->expects($this->once())
1515
->method('post')
1616
->with('repos/KnpLabs/php-github-api/deployments', $deploymentData);
1717

18-
$api->create("KnpLabs", "php-github-api", $deploymentData);
18+
$api->create('KnpLabs', 'php-github-api', $deploymentData);
1919
}
2020

2121
/**
@@ -28,7 +28,7 @@ public function shouldGetAllDeployments()
2828
->method('get')
2929
->with('repos/KnpLabs/php-github-api/deployments');
3030

31-
$api->all("KnpLabs", "php-github-api");
31+
$api->all('KnpLabs', 'php-github-api');
3232
}
3333

3434
/**
@@ -37,13 +37,13 @@ public function shouldGetAllDeployments()
3737
public function shouldGetAllDeploymentsWithFilterParameters()
3838
{
3939
$api = $this->getApiMock();
40-
$filterData = array("foo" => "bar", "bar" => "foo");
40+
$filterData = array('foo' => 'bar', 'bar' => 'foo');
4141

4242
$api->expects($this->once())
4343
->method('get')
4444
->with('repos/KnpLabs/php-github-api/deployments', $filterData);
4545

46-
$api->all("KnpLabs", "php-github-api", $filterData);
46+
$api->all('KnpLabs', 'php-github-api', $filterData);
4747
}
4848

4949
/**
@@ -52,13 +52,13 @@ public function shouldGetAllDeploymentsWithFilterParameters()
5252
public function shouldCreateStatusUpdate()
5353
{
5454
$api = $this->getApiMock();
55-
$statusData = array("state" => "pending", "description" => "waiting to start");
55+
$statusData = array('state' => 'pending', 'description' => 'waiting to start');
5656

5757
$api->expects($this->once())
5858
->method('post')
5959
->with('repos/KnpLabs/php-github-api/deployments/1/statuses', $statusData);
6060

61-
$api->updateStatus("KnpLabs", "php-github-api", 1, $statusData);
61+
$api->updateStatus('KnpLabs', 'php-github-api', 1, $statusData);
6262
}
6363

6464
/**
@@ -68,9 +68,9 @@ public function shouldCreateStatusUpdate()
6868
public function shouldRejectStatusUpdateWithoutStateField()
6969
{
7070
$api = $this->getApiMock();
71-
$statusData = array("description" => "waiting to start");
71+
$statusData = array('description' => 'waiting to start');
7272

73-
$api->updateStatus("KnpLabs", "php-github-api", 1, $statusData);
73+
$api->updateStatus('KnpLabs', 'php-github-api', 1, $statusData);
7474
}
7575

7676
/**
@@ -83,7 +83,7 @@ public function shouldGetAllStatuses()
8383
->method('get')
8484
->with('repos/KnpLabs/php-github-api/deployments/1/statuses');
8585

86-
$api->getStatuses("KnpLabs", "php-github-api", 1);
86+
$api->getStatuses('KnpLabs', 'php-github-api', 1);
8787
}
8888

8989
protected function getApiClass()

0 commit comments

Comments
 (0)