1 | <?php |
||
11 | class TextFileWriterTest 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\TextFileWriter::writeFile |
||
35 | * @uses \LazyEight\DiTesto\TextFileWriter |
||
36 | */ |
||
37 | public function testWriteFile() |
||
48 | |||
49 | /** |
||
50 | * @covers \LazyEight\DiTesto\TextFileWriter::writeFile |
||
51 | * @uses \LazyEight\DiTesto\TextFileWriter |
||
52 | * @expectException IOException |
||
53 | */ |
||
54 | public function testCantWriteFile() |
||
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | public static function tearDownAfterClass() |
||
86 | } |
||
87 |