Skip to content

Commit 1fd748b

Browse files
author
Till Hildebrandt
committed
Pull-Request Feedback for "Wrapped php-http/cache-plugin Cache Listeners"
- Reverted unwanted style changes (even though a additional space at string concat is really nice ;))
1 parent 65a5014 commit 1fd748b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/Unit/DependencyInjection/ConfigurationTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function getConfiguration(): ConfigurationInterface
9696
public function testEmptyConfiguration(): void
9797
{
9898
$formats = array_map(function ($path) {
99-
return __DIR__ . '/../../Resources/Fixtures/' . $path;
99+
return __DIR__.'/../../Resources/Fixtures/'.$path;
100100
}, [
101101
'config/empty.yml',
102102
'config/empty.xml',
@@ -277,7 +277,7 @@ public function testSupportsAllConfigFormats(): void
277277
];
278278

279279
$formats = array_map(function ($path) {
280-
return __DIR__ . '/../../Resources/Fixtures/' . $path;
280+
return __DIR__.'/../../Resources/Fixtures/'.$path;
281281
}, [
282282
'config/full.yml',
283283
'config/full.xml',
@@ -291,7 +291,7 @@ public function testSupportsAllConfigFormats(): void
291291

292292
public function testMissingClass(): void
293293
{
294-
$file = __DIR__ . '/../../Resources/Fixtures/config/invalid_class.yml';
294+
$file = __DIR__.'/../../Resources/Fixtures/config/invalid_class.yml';
295295

296296
$this->expectException(InvalidConfigurationException::class);
297297
$this->expectExceptionMessage('Nonexisting\Class');
@@ -300,7 +300,7 @@ public function testMissingClass(): void
300300

301301
public function testInvalidPlugin(): void
302302
{
303-
$file = __DIR__ . '/../../Resources/Fixtures/config/invalid_plugin.yml';
303+
$file = __DIR__.'/../../Resources/Fixtures/config/invalid_plugin.yml';
304304

305305
$this->expectException(InvalidConfigurationException::class);
306306
$this->expectExceptionMessage('Unrecognized option "foobar" under "httplug.clients.acme.plugins.0"');
@@ -309,7 +309,7 @@ public function testInvalidPlugin(): void
309309

310310
public function testInvalidAuthentication(): void
311311
{
312-
$file = __DIR__ . '/../../Resources/Fixtures/config/invalid_auth.yml';
312+
$file = __DIR__.'/../../Resources/Fixtures/config/invalid_auth.yml';
313313

314314
$this->expectException(InvalidConfigurationException::class);
315315
$this->expectExceptionMessage('password, service, username');
@@ -321,7 +321,7 @@ public function testInvalidAuthentication(): void
321321
*/
322322
public function testInvalidCacheConfig(): void
323323
{
324-
$file = __DIR__ . '/../../Resources/Fixtures/config/invalid_cache_config.yml';
324+
$file = __DIR__.'/../../Resources/Fixtures/config/invalid_cache_config.yml';
325325

326326
$this->expectException(InvalidConfigurationException::class);
327327
$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
334334
public function testBackwardCompatibility(): void
335335
{
336336
$formats = array_map(function ($path) {
337-
return __DIR__ . '/../../Resources/Fixtures/' . $path;
337+
return __DIR__.'/../../Resources/Fixtures/'.$path;
338338
}, [
339339
'config/bc/toolbar.yml',
340340
'config/bc/toolbar_auto.yml',
@@ -350,7 +350,7 @@ public function testBackwardCompatibility(): void
350350
*/
351351
public function testCacheConfigDeprecationCompatibility(): void
352352
{
353-
$file = __DIR__ . '/../../Resources/Fixtures/config/bc/cache_config.yml';
353+
$file = __DIR__.'/../../Resources/Fixtures/config/bc/cache_config.yml';
354354
$config = $this->emptyConfig;
355355
$config['plugins']['cache'] = array_merge($config['plugins']['cache'], [
356356
'enabled' => true,
@@ -369,7 +369,7 @@ public function testCacheConfigDeprecationCompatibility(): void
369369
*/
370370
public function testCacheConfigDeprecationCompatibilityIssue166(): void
371371
{
372-
$file = __DIR__ . '/../../Resources/Fixtures/config/bc/issue-166.yml';
372+
$file = __DIR__.'/../../Resources/Fixtures/config/bc/issue-166.yml';
373373
$config = $this->emptyConfig;
374374
$config['plugins']['cache'] = array_merge($config['plugins']['cache'], [
375375
'enabled' => true,
@@ -385,7 +385,7 @@ public function testCacheConfigDeprecationCompatibilityIssue166(): void
385385

386386
public function testProfilingToolbarCollision(): void
387387
{
388-
$file = __DIR__ . '/../../Resources/Fixtures/config/bc/profiling_toolbar.yml';
388+
$file = __DIR__.'/../../Resources/Fixtures/config/bc/profiling_toolbar.yml';
389389

390390
$this->expectException(InvalidConfigurationException::class);
391391
$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
394394

395395
public function testClientCacheConfigMustHavePool(): void
396396
{
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';
398398

399399
$this->expectException(InvalidConfigurationException::class);
400400
$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
403403

404404
public function testCacheConfigMustHavePool(): void
405405
{
406-
$file = __DIR__ . '/../../Resources/Fixtures/config/cache_config_with_no_pool.yml';
406+
$file = __DIR__.'/../../Resources/Fixtures/config/cache_config_with_no_pool.yml';
407407

408408
$this->expectException(InvalidConfigurationException::class);
409409
$this->expectExceptionMessage('The child node "cache_pool" at path "httplug.plugins.cache" must be configured.');
@@ -412,15 +412,15 @@ public function testCacheConfigMustHavePool(): void
412412

413413
public function testLimitlessCapturedBodyLength(): void
414414
{
415-
$file = __DIR__ . '/../../Resources/Fixtures/config/limitless_captured_body_length.yml';
415+
$file = __DIR__.'/../../Resources/Fixtures/config/limitless_captured_body_length.yml';
416416
$config = $this->emptyConfig;
417417
$config['profiling']['captured_body_length'] = null;
418418
$this->assertProcessedConfigurationEquals($config, [$file]);
419419
}
420420

421421
public function testInvalidCapturedBodyLengthString(): void
422422
{
423-
$file = __DIR__ . '/../../Resources/Fixtures/config/invalid_captured_body_length.yml';
423+
$file = __DIR__.'/../../Resources/Fixtures/config/invalid_captured_body_length.yml';
424424

425425
$this->expectException(InvalidConfigurationException::class);
426426
$this->expectExceptionMessage('The child node "captured_body_length" at path "httplug.profiling" must be an integer or null');

0 commit comments

Comments
 (0)