Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class FileFailTest extends AStorageTest |
||
10 | { |
||
11 | /** |
||
12 | * @throws FilesException |
||
13 | */ |
||
14 | public function testRead(): void |
||
15 | { |
||
16 | $lib = $this->getFileFailLib(); |
||
17 | $this->expectException(FilesException::class); |
||
18 | $lib->readFile(['dummy2.txt']); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @throws FilesException |
||
23 | */ |
||
24 | public function testSave(): void |
||
25 | { |
||
26 | $lib = $this->getFileFailLib(); |
||
27 | $this->expectException(FilesException::class); |
||
28 | $lib->saveFile(['extra.txt'], 'qwertzuiopasdfghjklyxcvbnm0123456789'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @throws FilesException |
||
33 | */ |
||
34 | public function testCopy(): void |
||
35 | { |
||
36 | $lib = $this->getFileFailLib(); |
||
37 | $this->expectException(FilesException::class); |
||
38 | $lib->copyFile(['dummy2.txt'], ['extra1.txt']); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @throws FilesException |
||
43 | */ |
||
44 | public function testMove(): void |
||
45 | { |
||
46 | $lib = $this->getFileFailLib(); |
||
47 | $this->expectException(FilesException::class); |
||
48 | $lib->moveFile(['extra1.txt'], ['extra2.txt']); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @throws FilesException |
||
53 | */ |
||
54 | public function testDelete(): void |
||
59 | } |
||
60 | } |
||
61 |