1 | <?php |
||
11 | class FileReaderTest 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 | * @covers \LazyEight\DiTesto\FileReader::__construct |
||
30 | * @covers \LazyEight\DiTesto\FileReader::readFile |
||
31 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::readable |
||
32 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::read |
||
33 | * @uses \LazyEight\DiTesto\FileReader |
||
34 | * @uses \LazyEight\DiTesto\FileReader |
||
35 | * @param \LazyEight\DiTesto\TextFileLoader |
||
36 | */ |
||
37 | public function testCanRead() |
||
45 | |||
46 | /** |
||
47 | * @covers \LazyEight\DiTesto\FileReader::readFile |
||
48 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::readable |
||
49 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::read |
||
50 | * @expectedException \LazyEight\DiTesto\FileSystem\Exceptions\FileSystemException |
||
51 | * @uses \LazyEight\DiTesto\FileReader |
||
52 | */ |
||
53 | public function testCantBeLoaded() |
||
58 | |||
59 | /** |
||
60 | * @covers \LazyEight\DiTesto\FileReader::readFile |
||
61 | * @expectedException \LazyEight\DiTesto\FileSystem\Exceptions\FileSystemException |
||
62 | */ |
||
63 | public function testCantRead() |
||
70 | } |
||
71 |