Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | private function newClient($indices) |
||
46 | { |
||
47 | $this->mockGenerator->shuntParentClassCalls(); |
||
48 | $this->mockGenerator->orphanize('__construct'); |
||
49 | |||
50 | $client = new Client(); |
||
51 | |||
52 | $this->calling($client)->indices = function() use ($indices) { |
||
53 | return $indices; |
||
54 | }; |
||
55 | |||
56 | return $client; |
||
57 | } |
||
58 | } |
||
59 |