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