Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | 17 | public function __construct(MockHandler $mock = NULL) |
|
12 | { |
||
13 | 17 | if ($mock) { |
|
14 | 16 | $handlerStack = HandlerStack::create($mock); |
|
15 | 16 | parent::__construct(['handler' => $handlerStack]); |
|
16 | } else { |
||
17 | 1 | parent::__construct([ |
|
18 | 1 | 'base_uri' => self::API_BASE, |
|
19 | 'headers' => [ |
||
20 | 'Content-Type' => 'application/json' |
||
21 | ] |
||
27 |