| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function testSuccess() |
||
| 47 | { |
||
| 48 | $actual = $this->processor->processConfiguration($this->configuration, [ |
||
| 49 | 'timegryd_opcache_reset' => [ |
||
| 50 | 'host' => 'example.com', |
||
| 51 | 'dir' => 'web-dir', |
||
| 52 | ], |
||
| 53 | ]); |
||
| 54 | |||
| 55 | $expected = [ |
||
| 56 | 'host' => 'example.com', |
||
| 57 | 'dir' => 'web-dir', |
||
| 58 | ]; |
||
| 59 | |||
| 60 | $this->assertEquals($expected, $actual); |
||
| 61 | } |
||
| 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: