| Total Complexity | 8 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class StubConfiguration |
||
| 8 | { |
||
| 9 | private $stubConfiguration; |
||
| 10 | |||
| 11 | private $testCase; |
||
| 12 | |||
| 13 | private $className; |
||
| 14 | |||
| 15 | 20 | public function __construct(TestCase $testCase) |
|
| 18 | 20 | } |
|
| 19 | |||
| 20 | 20 | public function setStubConfigurationArray(array $stubConfiguration): void |
|
| 24 | 20 | } |
|
| 25 | |||
| 26 | 20 | public function getStub() |
|
| 40 | } |
||
| 41 | |||
| 42 | 19 | private function getInitialStub() |
|
| 54 | } |
||
| 55 | |||
| 56 | 20 | private function getMockClassName() |
|
| 62 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.