| 1 | <?php |
||
| 8 | class ParserTest extends \PHPUnit_Framework_TestCase |
||
| 9 | { |
||
| 10 | public function setUp() |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @test |
||
| 18 | * @covers \VasilDakov\Postcode\Parser::outward |
||
| 19 | */ |
||
| 20 | public function canReturnOutwardCode() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @test |
||
| 29 | * @covers \VasilDakov\Postcode\Parser::inward |
||
| 30 | */ |
||
| 31 | public function canReturnInwardCode() |
||
| 37 | } |
||
| 38 |
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: