Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testBuild() |
||
22 | { |
||
23 | $cache = $this->build->project(); |
||
24 | $this->assertTrue(isset($cache['collections'])); |
||
25 | $this->assertTrue(isset($cache['forms'])); |
||
26 | $this->assertTrue(isset($cache['bundles'])); |
||
27 | $this->assertTrue(isset($cache['topics'])); |
||
28 | $this->assertTrue(isset($cache['routes'])); |
||
29 | $this->assertTrue(isset($cache['container'])); |
||
30 | $this->assertTrue(isset($cache['languages'])); |
||
31 | $this->assertTrue(isset($cache['config'])); |
||
32 | } |
||
33 | } |
||
34 |
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: