1 | <?php |
||
8 | class FileTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $file = './tests/files/urls.txt'; |
||
14 | |||
15 | /** |
||
16 | * @covers \LazyEight\DiTesto\File::__construct |
||
17 | * @uses \LazyEight\DiTesto\File |
||
18 | * @return File |
||
19 | */ |
||
20 | public function testCanBeCreated() |
||
27 | |||
28 | /** |
||
29 | * @covers \LazyEight\DiTesto\File::__construct |
||
30 | * @covers \LazyEight\DiTesto\File::getRawContent |
||
31 | * @uses \LazyEight\DiTesto\File |
||
32 | */ |
||
33 | public function testCanBeInitWithContent() |
||
43 | |||
44 | /** |
||
45 | * @covers \LazyEight\DiTesto\File::getPath |
||
46 | * @uses \LazyEight\DiTesto\File |
||
47 | * @depends testCanBeCreated |
||
48 | * @param File $file |
||
49 | */ |
||
50 | public function testGetPath(File $file) |
||
54 | |||
55 | /** |
||
56 | * @covers \LazyEight\DiTesto\File::getPath |
||
57 | * @uses \LazyEight\DiTesto\File |
||
58 | * @depends testCanBeCreated |
||
59 | * @param File $file |
||
60 | */ |
||
61 | public function testCantGetPath(File $file) |
||
65 | |||
66 | /** |
||
67 | * @covers \LazyEight\DiTesto\File::getRawContent |
||
68 | * @uses \LazyEight\DiTesto\File |
||
69 | * @depends testCanBeInitWithContent |
||
70 | * @param File $file |
||
71 | */ |
||
72 | public function testGetRawContent(File $file) |
||
77 | |||
78 | /** |
||
79 | * @covers \LazyEight\DiTesto\File::getRawContent |
||
80 | * @uses \LazyEight\DiTesto\File |
||
81 | * @depends testCanBeInitWithContent |
||
82 | * @param File $file |
||
83 | */ |
||
84 | public function testCantGetRawContent(File $file) |
||
88 | |||
89 | /** |
||
90 | * @covers \LazyEight\DiTesto\File::setRawContent |
||
91 | * @covers \LazyEight\DiTesto\File::getRawContent |
||
92 | * @uses \LazyEight\DiTesto\File |
||
93 | * @depends testCanBeCreated |
||
94 | * @param File $file |
||
95 | */ |
||
96 | public function testSetRawContent(File $file) |
||
101 | |||
102 | /** |
||
103 | * @covers \LazyEight\DiTesto\File::__toString |
||
104 | * @uses \LazyEight\DiTesto\File |
||
105 | * @depends testCanBeInitWithContent |
||
106 | * @param File $file |
||
107 | */ |
||
108 | public function testToString(File $file) |
||
113 | } |
||
114 |