| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testSimple(): void |
||
| 14 | { |
||
| 15 | $lib = new XLang(); |
||
| 16 | $this->assertNotEmpty($lib->getStLang()); |
||
| 17 | $this->assertInstanceOf(Translations::class, $lib->getStLang()); |
||
| 18 | $lib->setStLang(new XTrans()); |
||
| 19 | $this->assertInstanceOf(XTrans::class, $lib->getStLang()); |
||
| 20 | $lib->setStLang(null); |
||
| 21 | $this->assertInstanceOf(Translations::class, $lib->getStLang()); |
||
| 22 | } |
||
| 69 |