@@ -17,17 +17,17 @@ |
||
17 | 17 | public function testNotifyOfDeployment() |
18 | 18 | { |
19 | 19 | $deployment = $this->getMockBuilder(Deployment::class) |
20 | - ->disableOriginalConstructor() |
|
21 | - ->getMock(); |
|
20 | + ->disableOriginalConstructor() |
|
21 | + ->getMock(); |
|
22 | 22 | |
23 | 23 | $client = $this->getMockBuilder(CodebaseClient::class) |
24 | - ->disableOriginalConstructor() |
|
25 | - ->setMethods(['registerDeployment']) |
|
26 | - ->getMock(); |
|
24 | + ->disableOriginalConstructor() |
|
25 | + ->setMethods(['registerDeployment']) |
|
26 | + ->getMock(); |
|
27 | 27 | |
28 | 28 | $client->expects($this->once()) |
29 | - ->method('registerDeployment') |
|
30 | - ->with($this->equalTo($deployment)); |
|
29 | + ->method('registerDeployment') |
|
30 | + ->with($this->equalTo($deployment)); |
|
31 | 31 | |
32 | 32 | $notifier = new CodebaseNotifier($client); |
33 | 33 | $notifier->notifyOfDeployment($deployment); |
@@ -7,13 +7,13 @@ |
||
7 | 7 | class CodebaseClient |
8 | 8 | { |
9 | 9 | protected $username; |
10 | - protected $password; |
|
11 | - protected $headers = [ |
|
10 | + protected $password; |
|
11 | + protected $headers = [ |
|
12 | 12 | 'Accept: application/xml', |
13 | 13 | 'Content-type: application/xml', |
14 | 14 | ]; |
15 | 15 | |
16 | - const endpoint = 'http://api3.codebasehq.com/'; |
|
16 | + const endpoint = 'http://api3.codebasehq.com/'; |
|
17 | 17 | |
18 | 18 | public function __construct($username, $password) |
19 | 19 | { |