| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testFiles(): void |
||
| 16 | { |
||
| 17 | $lib = new MockFiles(); |
||
| 18 | $lib->setLang(new Translations()); |
||
| 19 | $content = $lib->open($this->sourcePath); |
||
| 20 | $this->assertNotEmpty($content); |
||
| 21 | $lib->save($this->testingPath, $content); |
||
| 22 | chmod($this->testingPath, 0444); |
||
| 23 | $this->expectException(AuthException::class); |
||
| 24 | $lib->save($this->testingPath, $content); |
||
| 25 | } |
||
| 49 |