| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testConstruct() |
||
| 14 | { |
||
| 15 | $r = new DocstringRepresentation('this is a string', 'filename', 123, 'classname'); |
||
|
|
|||
| 16 | |||
| 17 | $this->assertSame('this is a string', $r->contents); |
||
| 18 | $this->assertSame('filename', $r->file); |
||
| 19 | $this->assertSame(123, $r->line); |
||
| 20 | $this->assertSame('classname', $r->class); |
||
| 21 | $this->assertSame('docstring', $r->getName()); |
||
| 22 | } |
||
| 23 | |||
| 58 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.