Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Chekote\NounStore\Key; |
||
9 | class SplitPossessionsTest extends KeyTest |
||
10 | { |
||
11 | public function setUp() |
||
12 | { |
||
13 | parent::setUp(); |
||
14 | |||
15 | /* @noinspection PhpUndefinedMethodInspection */ |
||
16 | Phake::when($this->key)->splitPossessions(Phake::anyParameters())->thenCallParent(); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @dataProvider nouns |
||
21 | */ |
||
22 | public function testSuccessScenario($key, array $parts) |
||
23 | { |
||
24 | /* @noinspection PhpUndefinedMethodInspection */ |
||
25 | $this->assertSame( |
||
26 | $parts, |
||
27 | Phake::makeVisible($this->key)->splitPossessions($key) |
||
28 | ); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Data provider of possessive nouns and their component nouns. |
||
33 | * |
||
34 | * @return array[] |
||
35 | */ |
||
36 | public function nouns() |
||
45 | ]; |
||
46 | } |
||
47 | } |
||
48 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.