1 | <?php |
||
11 | class FileSystemReaderTest extends TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $file = './tests/files/urls.txt'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $imageFile = './tests/files/images.jpg'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $notReadable = './tests/files/urls_not_readable.txt'; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $directory = './tests/files/'; |
||
32 | |||
33 | /** |
||
34 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::__construct |
||
35 | * @return FileSystemReader |
||
36 | */ |
||
37 | public function testCanCreate() |
||
44 | |||
45 | /** |
||
46 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::read |
||
47 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::validate |
||
48 | * @param \LazyEight\DiTesto\TextFileLoader |
||
49 | */ |
||
50 | public function testCanRead() |
||
56 | |||
57 | /** |
||
58 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::read |
||
59 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::validate |
||
60 | * @expectedException \LazyEight\DiTesto\FileSystem\Exceptions\FileSystemException |
||
61 | * @uses \LazyEight\DiTesto\FileReader |
||
62 | */ |
||
63 | public function testCantBeLoaded() |
||
69 | |||
70 | /** |
||
71 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::read |
||
72 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::validate |
||
73 | * @expectedException \LazyEight\DiTesto\FileSystem\Exceptions\InvalidPathException |
||
74 | * @uses \LazyEight\DiTesto\FileReader |
||
75 | */ |
||
76 | public function testCantLoadDirectory() |
||
82 | |||
83 | /** |
||
84 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::read |
||
85 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::validate |
||
86 | * @expectedException \LazyEight\DiTesto\FileSystem\Exceptions\FileSystemException |
||
87 | */ |
||
88 | public function testCantRead() |
||
94 | |||
95 | /** |
||
96 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemReader::isReadable |
||
97 | */ |
||
98 | public function testIsReadable() |
||
107 | } |
||
108 |