| 1 | <?php |
||
| 7 | class PhpMndTest extends TestCase |
||
| 8 | { |
||
| 9 | public function setUp() |
||
| 16 | |||
| 17 | public function testGetOutput() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @dataProvider fileInputs |
||
| 35 | */ |
||
| 36 | public function testLinesReturnCorrect($filename, $lineNo, $expected) |
||
| 42 | |||
| 43 | public function testInvalidFile() |
||
| 47 | |||
| 48 | public function fileInputs() |
||
| 56 | } |
||
| 57 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: