diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php index 10bfdbed6fbb6..cdb44b5f12b69 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php @@ -26,17 +26,17 @@ class ImportMapConfigReaderTest extends TestCase protected function setUp(): void { $this->filesystem = new Filesystem(); - if (!file_exists(__DIR__ . '/../Fixtures/importmaps_for_writing')) { - $this->filesystem->mkdir(__DIR__ . '/../Fixtures/importmaps_for_writing'); + if (!file_exists(__DIR__.'/../Fixtures/importmaps_for_writing')) { + $this->filesystem->mkdir(__DIR__.'/../Fixtures/importmaps_for_writing'); } - if (!file_exists(__DIR__ . '/../Fixtures/importmaps_for_writing/assets')) { - $this->filesystem->mkdir(__DIR__ . '/../Fixtures/importmaps_for_writing/assets'); + if (!file_exists(__DIR__.'/../Fixtures/importmaps_for_writing/assets')) { + $this->filesystem->mkdir(__DIR__.'/../Fixtures/importmaps_for_writing/assets'); } } protected function tearDown(): void { - $this->filesystem->remove(__DIR__ . '/../Fixtures/importmaps_for_writing'); + $this->filesystem->remove(__DIR__.'/../Fixtures/importmaps_for_writing'); } public function testGetEntriesAndWriteEntries() @@ -63,7 +63,7 @@ public function testGetEntriesAndWriteEntries() ], ]; EOF; - file_put_contents(__DIR__ . '/../Fixtures/importmaps_for_writing/importmap.php', $importMap); + file_put_contents(__DIR__.'/../Fixtures/importmaps_for_writing/importmap.php', $importMap); $remotePackageStorage = $this->createMock(RemotePackageStorage::class); $remotePackageStorage->expects($this->any()) @@ -72,7 +72,7 @@ public function testGetEntriesAndWriteEntries() return '/path/to/vendor/'.$packageModuleSpecifier.'.'.$type->value; }); $reader = new ImportMapConfigReader( - __DIR__ . '/../Fixtures/importmaps_for_writing/importmap.php', + __DIR__.'/../Fixtures/importmaps_for_writing/importmap.php', $remotePackageStorage, ); $entries = $reader->getEntries(); @@ -100,24 +100,24 @@ public function testGetEntriesAndWriteEntries() $this->assertSame('package/with_file.js', $packageWithFileEntry->packageModuleSpecifier); // now save the original raw data from importmap.php and delete the file - $originalImportMapData = (static fn () => include __DIR__ . '/../Fixtures/importmaps_for_writing/importmap.php')(); - unlink(__DIR__ . '/../Fixtures/importmaps_for_writing/importmap.php'); + $originalImportMapData = (static fn () => include __DIR__.'/../Fixtures/importmaps_for_writing/importmap.php')(); + unlink(__DIR__.'/../Fixtures/importmaps_for_writing/importmap.php'); // dump the entries back to the file $reader->writeEntries($entries); - $newImportMapData = (static fn () => include __DIR__ . '/../Fixtures/importmaps_for_writing/importmap.php')(); + $newImportMapData = (static fn () => include __DIR__.'/../Fixtures/importmaps_for_writing/importmap.php')(); $this->assertSame($originalImportMapData, $newImportMapData); } public function testGetRootDirectory() { - $configReader = new ImportMapConfigReader(__DIR__ . '/../Fixtures/importmap.php', $this->createMock(RemotePackageStorage::class)); - $this->assertSame(__DIR__ . '/../Fixtures', $configReader->getRootDirectory()); + $configReader = new ImportMapConfigReader(__DIR__.'/../Fixtures/importmap.php', $this->createMock(RemotePackageStorage::class)); + $this->assertSame(__DIR__.'/../Fixtures', $configReader->getRootDirectory()); } public function testFindRootImportMapEntry() { - $configReader = new ImportMapConfigReader(__DIR__.'/../fixtures/importmap.php', $this->createMock(RemotePackageStorage::class)); + $configReader = new ImportMapConfigReader(__DIR__.'/../Fixtures/importmap.php', $this->createMock(RemotePackageStorage::class)); $entry = $configReader->findRootImportMapEntry('file2'); $this->assertSame('file2', $entry->importName); $this->assertSame('file2.js', $entry->path); diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php index 036d1449b2311..b8f6e767ae6b0 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapGeneratorTest.php @@ -32,15 +32,12 @@ class ImportMapGeneratorTest extends TestCase private ImportMapGenerator $importMapGenerator; private Filesystem $filesystem; - private static string $writableRoot = __DIR__.'/../fixtures/importmaps_for_writing'; + private static string $writableRoot = __DIR__.'/../Fixtures/importmaps_for_writing'; protected function setUp(): void { $this->filesystem = new Filesystem(); - if (!file_exists(__DIR__.'/../fixtures/importmaps_for_writing')) { - $this->filesystem->mkdir(self::$writableRoot); - } - if (!file_exists(__DIR__.'/../fixtures/importmaps_for_writing/assets')) { + if (!file_exists(self::$writableRoot.'/assets')) { $this->filesystem->mkdir(self::$writableRoot.'/assets'); } } diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php index 43f3e3de5fa32..e232a2a60e507 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapManagerTest.php @@ -35,15 +35,15 @@ class ImportMapManagerTest extends TestCase private ImportMapManager $importMapManager; private Filesystem $filesystem; - private static string $writableRoot = __DIR__ . '/../Fixtures/importmaps_for_writing'; + private static string $writableRoot = __DIR__.'/../Fixtures/importmaps_for_writing'; protected function setUp(): void { $this->filesystem = new Filesystem(); - if (!file_exists(__DIR__ . '/../Fixtures/importmaps_for_writing')) { + if (!file_exists(__DIR__.'/../Fixtures/importmaps_for_writing')) { $this->filesystem->mkdir(self::$writableRoot); } - if (!file_exists(__DIR__ . '/../Fixtures/importmaps_for_writing/assets')) { + if (!file_exists(__DIR__.'/../Fixtures/importmaps_for_writing/assets')) { $this->filesystem->mkdir(self::$writableRoot.'/assets'); } } diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageDownloaderTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageDownloaderTest.php index c43f4993e257c..bb71b6c347a6c 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageDownloaderTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageDownloaderTest.php @@ -24,7 +24,7 @@ class RemotePackageDownloaderTest extends TestCase { private Filesystem $filesystem; - private static string $writableRoot = __DIR__ . '/../Fixtures/importmaps_for_writing'; + private static string $writableRoot = __DIR__.'/../Fixtures/importmaps_for_writing'; protected function setUp(): void { diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php index d28b0f49ff1a1..5c791f83e3c08 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php @@ -20,7 +20,7 @@ class RemotePackageStorageTest extends TestCase { private Filesystem $filesystem; - private static string $writableRoot = __DIR__ . '/../Fixtures/importmaps_for_writing'; + private static string $writableRoot = __DIR__.'/../Fixtures/importmaps_for_writing'; protected function setUp(): void {