Total Complexity | 7 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class ConsecutiveCallsReturn extends Handler |
||
6 | { |
||
7 | 11 | public function handle(): bool |
|
8 | { |
||
9 | 11 | if (!$this->canHandle()) { |
|
10 | 2 | return false; |
|
11 | } |
||
12 | |||
13 | 10 | $this->initialStub->method($this->methodName)->will( |
|
14 | 10 | call_user_func_array([$this->testCase, 'onConsecutiveCalls'], $this->transformValue()) |
|
15 | ); |
||
16 | |||
17 | 10 | return true; |
|
18 | } |
||
19 | |||
20 | 11 | private function canHandle(): bool |
|
23 | } |
||
24 | |||
25 | private function transformValue() |
||
36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.