1 | <?php |
||
18 | class TextFileValidatorTest extends \PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $file = './tests/files/urls.txt'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $imageFile = './tests/files/images.jpg'; |
||
29 | |||
30 | /** |
||
31 | * @covers \LazyEight\DiTesto\TextFileValidator::__construct |
||
32 | * @uses \LazyEight\DiTesto\TextFileValidator |
||
33 | * @return \LazyEight\DiTesto\TextFileValidator |
||
34 | */ |
||
35 | public function testCanBeCreated() |
||
42 | |||
43 | /** |
||
44 | * @covers \LazyEight\DiTesto\TextFileValidator::validate |
||
45 | * @uses \LazyEight\DiTesto\TextFileValidator |
||
46 | * @depends testCanBeCreated |
||
47 | * @uses \LazyEight\DiTesto\TextFileValidator |
||
48 | * @param \LazyEight\DiTesto\TextFileValidator |
||
49 | */ |
||
50 | public function testValidationSuccess(TextFileValidator $validator) |
||
54 | |||
55 | /** |
||
56 | * @covers \LazyEight\DiTesto\TextFileValidator::validate |
||
57 | * @expectedException \LazyEight\DiTesto\Exceptions\InvalidFileLocationException |
||
58 | * @uses \LazyEight\DiTesto\TextFileValidator |
||
59 | */ |
||
60 | public function testLocationValidation() |
||
66 | |||
67 | /** |
||
68 | * @covers \LazyEight\DiTesto\TextFileValidator::validate |
||
69 | * @expectedException \LazyEight\DiTesto\Exceptions\InvalidFileTypeException |
||
70 | * @uses \LazyEight\DiTesto\TextFileValidator |
||
71 | */ |
||
72 | public function testFileTypeValidation() |
||
78 | } |