1 | <?php |
||
8 | class ConfigurationTest extends \PHPUnit\Framework\TestCase |
||
9 | { |
||
10 | protected function setUp() |
||
15 | |||
16 | /** |
||
17 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
18 | */ |
||
19 | public function testEmpty() |
||
23 | |||
24 | /** |
||
25 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
26 | */ |
||
27 | public function testHostRequired() |
||
33 | |||
34 | /** |
||
35 | * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
36 | */ |
||
37 | public function testDirRequired() |
||
45 | |||
46 | public function testSuccess() |
||
62 | } |
||
63 |
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: