1 | <?php |
||
17 | class FileTest extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $file = './tests/files/urls.txt'; |
||
23 | |||
24 | /** |
||
25 | * @covers \LazyEight\DiTesto\ValueObject\File::__construct |
||
26 | * @covers \LazyEight\DiTesto\ValueObject\FileLocation::__construct |
||
27 | * @covers \LazyEight\DiTesto\ValueObject\FileContent::__construct |
||
28 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
29 | * @return \LazyEight\DiTesto\ValueObject\File |
||
30 | */ |
||
31 | public function testCanBeCreated() |
||
39 | |||
40 | /** |
||
41 | * @covers \LazyEight\DiTesto\ValueObject\File::getLocation |
||
42 | * @covers \LazyEight\DiTesto\ValueObject\FileLocation::getValue |
||
43 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
44 | * @depends testCanBeCreated |
||
45 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
46 | * @param \LazyEight\DiTesto\ValueObject\File |
||
47 | */ |
||
48 | public function testLocationCanBeRetrieved(File $file) |
||
54 | |||
55 | /** |
||
56 | * @covers \LazyEight\DiTesto\ValueObject\File::getRawContent |
||
57 | * @covers \LazyEight\DiTesto\ValueObject\FileContent::getValue |
||
58 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
59 | * @depends testCanBeCreated |
||
60 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
61 | * @param \LazyEight\DiTesto\ValueObject\File |
||
62 | */ |
||
63 | public function testContentCanBeRetrieved(File $file) |
||
69 | |||
70 | /** |
||
71 | * @covers \LazyEight\DiTesto\ValueObject\File::__toString |
||
72 | * @depends testCanBeCreated |
||
73 | * @uses \LazyEight\DiTesto\ValueObject\File |
||
74 | * @param \LazyEight\DiTesto\ValueObject\File |
||
75 | */ |
||
76 | public function testToString(File $file) |
||
80 | } |
||
81 |