Skip to content

Commit 8f9eb12

Browse files
committed
Fixed issues that ECS tool reported
1 parent 2534601 commit 8f9eb12

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

tests/Integration/Entity/LogLoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
use PHPUnit\Framework\Attributes\TestDox;
2323
use Symfony\Component\HttpFoundation\Request;
2424
use Throwable;
25-
use function method_exists;
2625
use function in_array;
26+
use function method_exists;
2727
use function ucfirst;
2828

2929
/**

tests/Integration/Entity/LogRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
use Symfony\Component\HttpFoundation\Request;
2525
use Symfony\Component\HttpFoundation\Response;
2626
use Throwable;
27-
use function method_exists;
2827
use function in_array;
2928
use function is_array;
3029
use function is_object;
30+
use function method_exists;
3131
use function sprintf;
3232
use function ucfirst;
3333

tests/Integration/TestCase/EntityTestCase.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Doctrine\ORM\Mapping\AssociationMapping;
2424
use Doctrine\ORM\Mapping\ClassMetadata;
2525
use Doctrine\ORM\Mapping\FieldMapping;
26-
use Doctrine\ORM\Mapping\ManyToManyOwningSideMapping;
2726
use PHPUnit\Framework\Attributes\DataProvider;
2827
use PHPUnit\Framework\Attributes\TestDox;
2928
use RuntimeException;
@@ -262,9 +261,7 @@ public function testThatGetterReturnsExpectedValue(
262261
//if (array_key_exists('columnName', $meta) || array_key_exists('joinColumns', $meta)) {
263262
if (isset($meta->fieldName) && $meta->columnDefinition === null) {
264263
$value = PhpUnitUtil::getValidValueForType($type, $meta);
265-
266264
$entity->{$setter}($value);
267-
268265
self::assertSame(
269266
$value,
270267
$callable(),
@@ -278,10 +275,9 @@ public function testThatGetterReturnsExpectedValue(
278275
);
279276
} else {
280277
$type = ArrayCollection::class;
281-
282278
self::assertInstanceOf($type, $callable());
283279
}
284-
*/
280+
*/
285281

286282
try {
287283
$method = 'assertIs' . ucfirst($type);
@@ -367,8 +363,6 @@ public function testThatManyToManyAssociationMethodsWorksAsExpected(
367363

368364
self::assertTrue($collection->contains($e));
369365

370-
371-
372366
if (isset($m['mappedBy'])) {
373367
/** @var ArrayCollection<int, EntityInterface> $collection */
374368
$collection = $e->{'get' . ucfirst((string)$m['mappedBy'])}();

tests/Unit/Utils/Tests/PHPUnitUtilTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use App\Tests\Utils\StringableArrayObject;
1414
use DateTime;
1515
use DateTimeImmutable;
16-
use Doctrine\ORM\Mapping\FieldMapping;
1716
use Generator;
1817
use LogicException;
1918
use PHPUnit\Framework\Attributes\DataProvider;

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
// Create new application
142142
$application = new Application($kernel);
143143
$application->setAutoExit(false);
144+
144145
return $application;
145146
};
146147

@@ -219,7 +220,6 @@
219220
]
220221
);
221222

222-
223223
/**
224224
* For some reason we need to re-create application to get loading of
225225
* fixtures working correctly with ORM v3

0 commit comments

Comments
 (0)