From 61f959982cdc2ed869f995463e8ded7bddd5254a Mon Sep 17 00:00:00 2001 From: kfrankiewicz Date: Thu, 7 Nov 2024 10:16:30 +0100 Subject: [PATCH] coding standards --- tests/Metadata/Storage/TableMetadataStorageTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/Metadata/Storage/TableMetadataStorageTest.php b/tests/Metadata/Storage/TableMetadataStorageTest.php index ba9160cbb..d24193a5f 100644 --- a/tests/Metadata/Storage/TableMetadataStorageTest.php +++ b/tests/Metadata/Storage/TableMetadataStorageTest.php @@ -30,6 +30,7 @@ use Doctrine\Migrations\Version\Version; use PHPUnit\Framework\TestCase; use Psr\Log\Test\TestLogger; +use ReflectionClass; use function sprintf; @@ -404,17 +405,17 @@ public function testGetSql(): void self::assertCount(0, $this->connection->fetchAllAssociative($sql)); } - public function testIsAlreadyV3FormatDoesntMissTheSameVersions() + public function testIsAlreadyV3FormatDoesntMissTheSameVersions(): void { - $availableMigration = new AvailableMigration( + $availableMigration = new AvailableMigration( new Version('Foo\\Version1234'), - $this->createMock(AbstractMigration::class) + $this->createMock(AbstractMigration::class), ); - $executedMigrationV3 = new ExecutedMigration(new Version('Foo\\Version1234')); + $executedMigrationV3 = new ExecutedMigration(new Version('Foo\\Version1234')); $executedMigrationOlder = new ExecutedMigration(new Version('Version1234')); - $reflection = new \ReflectionClass(TableMetadataStorage::class); - $method = $reflection->getMethod('isAlreadyV3Format'); + $reflection = new ReflectionClass(TableMetadataStorage::class); + $method = $reflection->getMethod('isAlreadyV3Format'); $method->setAccessible(true); self::assertTrue($method->invokeArgs($this->storage, [$availableMigration, $executedMigrationV3]));