Passed
Push — master ( 2b14a7...fa4f50 )
by Petr
02:38
created

NodeFailTest   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 22
dl 0
loc 77
rs 10
c 1
b 0
f 0
wmc 7
1
<?php
2
3
namespace StorageDirsTests;
4
5
6
use kalanis\kw_files\FilesException;
7
use kalanis\kw_paths\PathsException;
8
9
10
class NodeFailTest extends AStorageTest
11
{
12
    /**
13
     * @throws FilesException
14
     * @throws PathsException
15
     */
16
    public function testExists(): void
17
    {
18
        $lib = $this->getNodeFailLib();
19
        $this->expectException(FilesException::class);
20
        $lib->exists(['unknown']);
21
    }
22
23
    /**
24
     * @throws FilesException
25
     * @throws PathsException
26
     */
27
    public function testDir(): void
28
    {
29
        $lib = $this->getNodeFailLib();
30
        $this->expectException(FilesException::class);
31
        $lib->isDir(['unknown']);
32
    }
33
34
    /**
35
     * @throws FilesException
36
     * @throws PathsException
37
     */
38
    public function testFile(): void
39
    {
40
        $lib = $this->getNodeFailLib();
41
        $this->expectException(FilesException::class);
42
        $lib->isFile(['unknown']);
43
    }
44
45
    /**
46
     * @throws FilesException
47
     * @throws PathsException
48
     */
49
    public function testReadable(): void
50
    {
51
        $lib = $this->getNodeFailLib();
52
        $this->expectException(FilesException::class);
53
        $lib->isReadable(['unknown']);
54
    }
55
56
    /**
57
     * @throws FilesException
58
     * @throws PathsException
59
     */
60
    public function testWritable(): void
61
    {
62
        $lib = $this->getNodeFailLib();
63
        $this->expectException(FilesException::class);
64
        $lib->isWritable(['unknown']);
65
    }
66
67
    /**
68
     * @throws FilesException
69
     * @throws PathsException
70
     */
71
    public function testSize(): void
72
    {
73
        $lib = $this->getNodeFailLib();
74
        $this->expectException(FilesException::class);
75
        $lib->size(['unknown']);
76
    }
77
78
    /**
79
     * @throws FilesException
80
     * @throws PathsException
81
     */
82
    public function testCreated(): void
83
    {
84
        $lib = $this->getNodeFailLib();
85
        $this->expectException(FilesException::class);
86
        $lib->created(['unknown']);
87
    }
88
}
89