1 | <?php |
||
12 | class FileWriterTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $file = './tests/files/urls.txt'; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $path = './tests/files'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $newFilename = 'newFilename.txt'; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $testLine = 'THIS IS A TEST LINE'; |
||
33 | |||
34 | /** |
||
35 | * @covers \LazyEight\DiTesto\FileWriter::writeFile |
||
36 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::exists |
||
37 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::isWritable |
||
38 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::write |
||
39 | * @uses \LazyEight\DiTesto\FileWriter |
||
40 | */ |
||
41 | public function testWriteFile() |
||
50 | |||
51 | /** |
||
52 | * @covers \LazyEight\DiTesto\FileWriter::writeFile |
||
53 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::exists |
||
54 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::isWritable |
||
55 | * @covers \LazyEight\DiTesto\FileSystem\FileSystemHandler::write |
||
56 | * @uses \LazyEight\DiTesto\FileWriter |
||
57 | * @expectException IOException |
||
58 | */ |
||
59 | public function testCantWriteFile() |
||
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | public static function tearDownAfterClass() |
||
91 | } |
||
92 |