@@ -96,7 +96,7 @@ protected function getConfiguration(): ConfigurationInterface
96
96
public function testEmptyConfiguration (): void
97
97
{
98
98
$ formats = array_map (function ($ path ) {
99
- return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
99
+ return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
100
100
}, [
101
101
'config/empty.yml ' ,
102
102
'config/empty.xml ' ,
@@ -277,7 +277,7 @@ public function testSupportsAllConfigFormats(): void
277
277
];
278
278
279
279
$ formats = array_map (function ($ path ) {
280
- return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
280
+ return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
281
281
}, [
282
282
'config/full.yml ' ,
283
283
'config/full.xml ' ,
@@ -291,7 +291,7 @@ public function testSupportsAllConfigFormats(): void
291
291
292
292
public function testMissingClass (): void
293
293
{
294
- $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_class.yml ' ;
294
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_class.yml ' ;
295
295
296
296
$ this ->expectException (InvalidConfigurationException::class);
297
297
$ this ->expectExceptionMessage ('Nonexisting\Class ' );
@@ -300,7 +300,7 @@ public function testMissingClass(): void
300
300
301
301
public function testInvalidPlugin (): void
302
302
{
303
- $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_plugin.yml ' ;
303
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_plugin.yml ' ;
304
304
305
305
$ this ->expectException (InvalidConfigurationException::class);
306
306
$ this ->expectExceptionMessage ('Unrecognized option "foobar" under "httplug.clients.acme.plugins.0" ' );
@@ -309,7 +309,7 @@ public function testInvalidPlugin(): void
309
309
310
310
public function testInvalidAuthentication (): void
311
311
{
312
- $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_auth.yml ' ;
312
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_auth.yml ' ;
313
313
314
314
$ this ->expectException (InvalidConfigurationException::class);
315
315
$ this ->expectExceptionMessage ('password, service, username ' );
@@ -321,7 +321,7 @@ public function testInvalidAuthentication(): void
321
321
*/
322
322
public function testInvalidCacheConfig (): void
323
323
{
324
- $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_cache_config.yml ' ;
324
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_cache_config.yml ' ;
325
325
326
326
$ this ->expectException (InvalidConfigurationException::class);
327
327
$ this ->expectExceptionMessage ('Invalid configuration for path "httplug.plugins.cache.config": You can \'t provide config option "respect_cache_headers" and "respect_response_cache_directives" simultaniously. Use "respect_response_cache_directives" instead. ' );
@@ -334,7 +334,7 @@ public function testInvalidCacheConfig(): void
334
334
public function testBackwardCompatibility (): void
335
335
{
336
336
$ formats = array_map (function ($ path ) {
337
- return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
337
+ return __DIR__ . '/../../Resources/Fixtures/ ' . $ path ;
338
338
}, [
339
339
'config/bc/toolbar.yml ' ,
340
340
'config/bc/toolbar_auto.yml ' ,
@@ -350,7 +350,7 @@ public function testBackwardCompatibility(): void
350
350
*/
351
351
public function testCacheConfigDeprecationCompatibility (): void
352
352
{
353
- $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/cache_config.yml ' ;
353
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/cache_config.yml ' ;
354
354
$ config = $ this ->emptyConfig ;
355
355
$ config ['plugins ' ]['cache ' ] = array_merge ($ config ['plugins ' ]['cache ' ], [
356
356
'enabled ' => true ,
@@ -369,7 +369,7 @@ public function testCacheConfigDeprecationCompatibility(): void
369
369
*/
370
370
public function testCacheConfigDeprecationCompatibilityIssue166 (): void
371
371
{
372
- $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/issue-166.yml ' ;
372
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/issue-166.yml ' ;
373
373
$ config = $ this ->emptyConfig ;
374
374
$ config ['plugins ' ]['cache ' ] = array_merge ($ config ['plugins ' ]['cache ' ], [
375
375
'enabled ' => true ,
@@ -385,7 +385,7 @@ public function testCacheConfigDeprecationCompatibilityIssue166(): void
385
385
386
386
public function testProfilingToolbarCollision (): void
387
387
{
388
- $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/profiling_toolbar.yml ' ;
388
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/bc/profiling_toolbar.yml ' ;
389
389
390
390
$ this ->expectException (InvalidConfigurationException::class);
391
391
$ this ->expectExceptionMessage ('Can \'t configure both "toolbar" and "profiling" section. The "toolbar" config is deprecated as of version 1.3.0, please only use "profiling". ' );
@@ -394,7 +394,7 @@ public function testProfilingToolbarCollision(): void
394
394
395
395
public function testClientCacheConfigMustHavePool (): void
396
396
{
397
- $ file = __DIR__ . '/../../Resources/Fixtures/config/client_cache_config_with_no_pool.yml ' ;
397
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/client_cache_config_with_no_pool.yml ' ;
398
398
399
399
$ this ->expectException (InvalidConfigurationException::class);
400
400
$ this ->expectExceptionMessage ('The child node "cache_pool" at path "httplug.clients.test.plugins.0.cache" must be configured. ' );
@@ -403,7 +403,7 @@ public function testClientCacheConfigMustHavePool(): void
403
403
404
404
public function testCacheConfigMustHavePool (): void
405
405
{
406
- $ file = __DIR__ . '/../../Resources/Fixtures/config/cache_config_with_no_pool.yml ' ;
406
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/cache_config_with_no_pool.yml ' ;
407
407
408
408
$ this ->expectException (InvalidConfigurationException::class);
409
409
$ this ->expectExceptionMessage ('The child node "cache_pool" at path "httplug.plugins.cache" must be configured. ' );
@@ -412,15 +412,15 @@ public function testCacheConfigMustHavePool(): void
412
412
413
413
public function testLimitlessCapturedBodyLength (): void
414
414
{
415
- $ file = __DIR__ . '/../../Resources/Fixtures/config/limitless_captured_body_length.yml ' ;
415
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/limitless_captured_body_length.yml ' ;
416
416
$ config = $ this ->emptyConfig ;
417
417
$ config ['profiling ' ]['captured_body_length ' ] = null ;
418
418
$ this ->assertProcessedConfigurationEquals ($ config , [$ file ]);
419
419
}
420
420
421
421
public function testInvalidCapturedBodyLengthString (): void
422
422
{
423
- $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_captured_body_length.yml ' ;
423
+ $ file = __DIR__ . '/../../Resources/Fixtures/config/invalid_captured_body_length.yml ' ;
424
424
425
425
$ this ->expectException (InvalidConfigurationException::class);
426
426
$ this ->expectExceptionMessage ('The child node "captured_body_length" at path "httplug.profiling" must be an integer or null ' );
0 commit comments