Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testLoad() |
||
36 | { |
||
37 | $catalogue = $this->loader->load('', self::TEST_DATA_LOCALE, self::TEST_DATA_DOMAIN); |
||
38 | $messages = $catalogue->all(self::TEST_DATA_DOMAIN); |
||
39 | $this->assertEquals($messages[self::TEST_DATA_KEYWORD], self::TEST_DATA_TEXT); |
||
40 | $this->assertEquals($catalogue->getLocale(), self::TEST_DATA_LOCALE); |
||
41 | } |
||
42 | } |
||
43 |
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: