| Conditions | 1 |
| Paths | 1 |
| Total Lines | 36 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testGettext(): void |
||
| 26 | { |
||
| 27 | $this->assertEquals( |
||
| 28 | 'Typ', |
||
| 29 | _gettext('Type') |
||
| 30 | ); |
||
| 31 | |||
| 32 | $this->assertEquals( |
||
| 33 | 'Typ', |
||
| 34 | __('Type') |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->assertEquals( |
||
| 38 | '%d sekundy', |
||
| 39 | _ngettext( |
||
| 40 | '%d second', |
||
| 41 | '%d seconds', |
||
| 42 | 2 |
||
| 43 | ) |
||
| 44 | ); |
||
| 45 | |||
| 46 | $this->assertEquals( |
||
| 47 | '%d seconds', |
||
| 48 | _npgettext( |
||
| 49 | 'context', |
||
| 50 | '%d second', |
||
| 51 | '%d seconds', |
||
| 52 | 2 |
||
| 53 | ) |
||
| 54 | ); |
||
| 55 | |||
| 56 | $this->assertEquals( |
||
| 57 | 'Tabulka', |
||
| 58 | _pgettext( |
||
| 59 | 'Display format', |
||
| 60 | 'Table' |
||
| 61 | ) |
||
| 103 |