1 | <?php |
||
19 | class VerifyOrDieTest extends TestCase |
||
20 | { |
||
21 | /** |
||
22 | * @test a portable filename passes |
||
23 | */ |
||
24 | public function portableFilename() |
||
30 | |||
31 | /** |
||
32 | * @test user-message for verification |
||
33 | */ |
||
34 | public function userMessage() |
||
44 | |||
45 | /** |
||
46 | * @test a filename must have at least one byte |
||
47 | * @expectedException RuntimeException |
||
48 | * @expectedExceptionMessage Filename is zero-length string |
||
49 | */ |
||
50 | public function zeroLengthFilename() |
||
54 | |||
55 | /** |
||
56 | * @test |
||
57 | * @expectedException InvalidArgumentException |
||
58 | * @expectedExceptionMessage Parameter basename must be of type string, NULL given |
||
59 | */ |
||
60 | public function invalidArugment() |
||
64 | |||
65 | /** |
||
66 | * @test a filename must not start with a dash |
||
67 | * @expectedException RuntimeException |
||
68 | * @expectedExceptionMessage Filename '-rf' starts with a dash |
||
69 | */ |
||
70 | public function startWithDashFilename() |
||
74 | |||
75 | /** |
||
76 | * @test |
||
77 | * @dataProvider provideNonPortableFilenames |
||
78 | * @expectedException RuntimeException |
||
79 | * @expectedExceptionMessage is not portable |
||
80 | */ |
||
81 | public function nonPortableFilenameThrowsException($filename) |
||
85 | |||
86 | /** |
||
87 | * @see nonPortableFilenameThrowsException |
||
88 | */ |
||
89 | public function provideNonPortableFilenames() |
||
97 | } |
||
98 |