Skip to content

Commit 4271b63

Browse files
PSR-4 autoloading fix (#132)
* Fixed PSR-4 autoloading * wip
1 parent 3431fc9 commit 4271b63

7 files changed

+23
-19
lines changed

Tests/PhpUnit/ContainerBuilderHasServiceDefinitionConstraintTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\ContainerBuilderHasServiceDefinitionConstraint;
66
use PHPUnit\Framework\TestCase;
@@ -14,11 +14,11 @@ class ContainerBuilderHasServiceDefinitionConstraintTest extends TestCase
1414
* @dataProvider containerBuilderProvider
1515
*/
1616
public function match(
17-
ContainerBuilder $containerBuilder,
18-
$serviceId,
19-
$expectedClass,
20-
$checkExpectedClass,
21-
$shouldMatch
17+
ContainerBuilder $containerBuilder,
18+
$serviceId,
19+
$expectedClass,
20+
$checkExpectedClass,
21+
$shouldMatch
2222
): void {
2323
$constraint = new ContainerBuilderHasServiceDefinitionConstraint($serviceId, $expectedClass, $checkExpectedClass);
2424

Tests/PhpUnit/ContainerBuilderHasSyntheticServiceConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\ContainerBuilderHasSyntheticServiceConstraint;
66
use PHPUnit\Framework\Constraint\Constraint;

Tests/PhpUnit/ContainerHasParameterConstraintTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\ContainerHasParameterConstraint;
66
use PHPUnit\Framework\TestCase;
@@ -13,11 +13,11 @@ class ContainerHasParameterConstraintTest extends TestCase
1313
* @dataProvider containerBuilderProvider
1414
*/
1515
public function match(
16-
ContainerInterface $container,
17-
$parameterName,
18-
$parameterValue,
19-
$checkParameterValue,
20-
$expectedToMatch
16+
ContainerInterface $container,
17+
$parameterName,
18+
$parameterValue,
19+
$checkParameterValue,
20+
$expectedToMatch
2121
): void {
2222
$constraint = new ContainerHasParameterConstraint($parameterName, $parameterValue, $checkParameterValue);
2323

Tests/PhpUnit/DefinitionHasArgumentConstraintTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasArgumentConstraint;
66
use PHPUnit\Framework\ExpectationFailedException;
@@ -121,7 +121,9 @@ public function supports_indexed_arguments($argumentIndex): void
121121
self::assertStringStartsWith(
122122
sprintf(
123123
'The value of argument with index %d (\'%s\') is not equal to the expected value (\'%s\')',
124-
$argumentIndex, $expectedValue, $failingExpectation
124+
$argumentIndex,
125+
$expectedValue,
126+
$failingExpectation
125127
),
126128
$e->getMessage()
127129
);
@@ -167,7 +169,9 @@ public function supports_named_arguments($argument): void
167169
self::assertStringStartsWith(
168170
sprintf(
169171
'The value of argument named "%s" (\'%s\') is not equal to the expected value (\'%s\')',
170-
$argument, $expectedValue, $failingExpectation
172+
$argument,
173+
$expectedValue,
174+
$failingExpectation
171175
),
172176
$e->getMessage()
173177
);

Tests/PhpUnit/DefinitionHasMethodCallConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasMethodCallConstraint;
66
use PHPUnit\Framework\TestCase;

Tests/PhpUnit/DefinitionHasTagConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasTagConstraint;
66
use PHPUnit\Framework\ExpectationFailedException;

Tests/PhpUnit/DefinitionIsChildOfConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Matthias\DependencyInjectionTests\Test\DependencyInjection;
3+
namespace Matthias\SymfonyDependencyInjectionTest\Tests\PhpUnit;
44

55
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionIsChildOfConstraint;
66
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)