Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class RequestStateStoreTest extends TestCase |
||
14 | { |
||
15 | /** |
||
16 | * @var RequestStateStore |
||
17 | */ |
||
18 | private $store; |
||
19 | /** |
||
20 | * @var \Prophecy\Prophecy\ObjectProphecy |
||
21 | */ |
||
22 | private $user; |
||
23 | |||
24 | protected function setUp() |
||
33 | } |
||
34 | |||
35 | public function testSet() |
||
46 | } |
||
47 | |||
48 | public function testGet() |
||
58 |
This check compares calls to functions or methods with their respective definitions. If the call has less 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.