1 | <?php |
||
10 | class StatusTest extends FlexiBeeROTest |
||
11 | { |
||
12 | /** |
||
13 | * @var Status |
||
14 | */ |
||
15 | protected $object; |
||
16 | |||
17 | /** |
||
18 | * Sets up the fixture, for example, opens a network connection. |
||
19 | * This method is called before a test is executed. |
||
20 | */ |
||
21 | protected function setUp() |
||
25 | |||
26 | /** |
||
27 | * Tears down the fixture, for example, closes a network connection. |
||
28 | * This method is called after a test is executed. |
||
29 | */ |
||
30 | protected function tearDown() |
||
34 | |||
35 | public function testConstructor() |
||
46 | |||
47 | /** |
||
48 | * @covers FlexiPeeHP\Status::getFlexiData |
||
49 | */ |
||
50 | public function testGetFlexiData() |
||
54 | |||
55 | /** |
||
56 | * @covers FlexiPeeHP\Status::unifyResponseFormat |
||
57 | */ |
||
58 | public function testUnifyResponseFormat() |
||
65 | } |
||
66 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.