| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function testFindingOnSamplePhpdocLayout() |
||
| 25 | { |
||
| 26 | include(__DIR__ . '/../../examples/03-sample-phpdoc-layout.php'); |
||
| 27 | |||
| 28 | $this->assertEquals(4, count($result)); |
||
|
|
|||
| 29 | $this->assertEquals("JmsSerializerServiceProvider.php", $result[0]['basename']); |
||
| 30 | $this->assertEquals("MonologServiceProvider.php", $result[1]['basename']); |
||
| 31 | $this->assertEquals("Application.php", $result[2]['basename']); |
||
| 32 | $this->assertEquals("Bootstrap.php", $result[3]['basename']); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.