@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | 'config' => [ |
| 48 | 48 | 'base_uri' => $this->site, |
| 49 | 49 | ], |
| 50 | - 'errorChecker' => function ($res) { |
|
| 50 | + 'errorChecker' => function($res) { |
|
| 51 | 51 | return null; |
| 52 | 52 | }, |
| 53 | 53 | ]); |
@@ -61,15 +61,15 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | $result = $this->object->get($this->url, [], $this->body, false); |
| 63 | 63 | $this->assertSame($this->result, $result); |
| 64 | - $this->assertSame('request', $this->mock->name); |
|
| 65 | - $this->assertSame('GET', $this->mock->args[0]); |
|
| 66 | - $this->assertSame($this->url, $this->mock->args[1]); |
|
| 64 | + $this->assertSame('request', $this->mock->name); |
|
| 65 | + $this->assertSame('GET', $this->mock->args[0]); |
|
| 66 | + $this->assertSame($this->url, $this->mock->args[1]); |
|
| 67 | 67 | $this->assertSame($this->body, $this->mock->args[2]['form_params']); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | public function testErrorChecker() |
| 71 | 71 | { |
| 72 | - $this->object->setErrorChecker(function ($res) { return $res; }); |
|
| 72 | + $this->object->setErrorChecker(function($res) { return $res; }); |
|
| 73 | 73 | $this->setExpectedException('hiqdev\hiart\ErrorResponseException', $this->result); |
| 74 | 74 | $this->object->get($this->url, [], $this->body, false); |
| 75 | 75 | } |