Total Complexity | 1 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class LangTest extends \CommonTestClass |
||
12 | { |
||
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 |