| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class AStorage extends CommonTestClass |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @throws UploadException |
||
| 16 | */ |
||
| 17 | public function tearDown(): void |
||
| 18 | { |
||
| 19 | if (is_file($this->mockTestFile())) { |
||
| 20 | $this->mockStorage()->remove($this->mockTestFile()); |
||
| 21 | } |
||
| 22 | parent::tearDown(); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function mockStorage(): InfoStorage\AStorage |
||
| 26 | { |
||
| 27 | return new InfoStorage\Volume(new Translations()); |
||
| 28 | } |
||
| 30 |