1 | <?php |
||
23 | class DataTest extends TestCase |
||
24 | { |
||
25 | /** |
||
26 | * @covers ::formatDataPath |
||
27 | */ |
||
28 | public function testDefaultConstructor(): void |
||
35 | |||
36 | /** |
||
37 | * @covers ::formatPath |
||
38 | * @covers ::formatDataPath |
||
39 | * @covers ::assertValidPath |
||
40 | * @covers ::assertValidState |
||
41 | * |
||
42 | * @dataProvider validUrlProvider |
||
43 | */ |
||
44 | public function testCreateFromString(string $uri, string $path): void |
||
48 | |||
49 | public function validUrlProvider(): array |
||
74 | |||
75 | /** |
||
76 | * @covers ::formatDataPath |
||
77 | * @covers ::assertValidPath |
||
78 | * @covers ::assertValidState |
||
79 | * |
||
80 | * @dataProvider invalidUrlProvider |
||
81 | */ |
||
82 | public function testCreateFromStringFailed(string $uri): void |
||
87 | |||
88 | public function invalidUrlProvider(): array |
||
94 | |||
95 | |||
96 | /** |
||
97 | * @covers ::formatDataPath |
||
98 | * @covers ::assertValidPath |
||
99 | * @covers ::assertValidState |
||
100 | * |
||
101 | * @dataProvider invalidComponentProvider |
||
102 | */ |
||
103 | public function testCreateFromStringFailedWithWrongComponent(string $uri): void |
||
108 | |||
109 | public function invalidComponentProvider(): array |
||
117 | |||
118 | /** |
||
119 | * @covers ::assertValidPath |
||
120 | * @covers ::formatDataPath |
||
121 | * @covers ::assertValidState |
||
122 | */ |
||
123 | public function testCreateFromComponentsFailedWithInvalidArgumentException(): void |
||
128 | |||
129 | /** |
||
130 | * @covers ::assertValidPath |
||
131 | * @covers ::validateParameter |
||
132 | * @covers ::formatDataPath |
||
133 | * @covers ::assertValidState |
||
134 | */ |
||
135 | public function testCreateFromComponentsFailedInvalidMediatype(): void |
||
140 | |||
141 | public function testCreateFromComponentsFailedWithException(): void |
||
146 | |||
147 | /** |
||
148 | * @covers ::assertValidPath |
||
149 | * @covers ::formatDataPath |
||
150 | * @covers ::assertValidState |
||
151 | */ |
||
152 | public function testWithPath(): void |
||
158 | |||
159 | /** |
||
160 | * @covers ::assertValidState |
||
161 | */ |
||
162 | public function testSyntaxError(): void |
||
167 | } |
||
168 |