From b4cbe141e42e1e91dd083b52b68920b830705901 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 29 Jul 2023 16:07:29 +0200 Subject: [PATCH] naming --- src/Finder/OldToNewFilesFinder.php | 3 +++ .../Vendor/some/package/composer.json | 0 .../Vendor/some/package/src/PackageClass.php | 0 .../Vendor/some/package/src/PackageClass.php.old | 0 .../Vendor/some/package/src/PackageXml.xml | 0 .../Vendor/some/package/src/PackageXml.xml.old | 0 .../Finder/{VendorFilesFinderSource => Fixture}/some_file.txt | 0 ...{VendorFilesFinderTest.php => OldToNewFilesFinderTest.php} | 4 ++-- 8 files changed, 5 insertions(+), 2 deletions(-) rename tests/Finder/{VendorFilesFinderSource => Fixture}/Vendor/some/package/composer.json (100%) rename tests/Finder/{VendorFilesFinderSource => Fixture}/Vendor/some/package/src/PackageClass.php (100%) rename tests/Finder/{VendorFilesFinderSource => Fixture}/Vendor/some/package/src/PackageClass.php.old (100%) rename tests/Finder/{VendorFilesFinderSource => Fixture}/Vendor/some/package/src/PackageXml.xml (100%) rename tests/Finder/{VendorFilesFinderSource => Fixture}/Vendor/some/package/src/PackageXml.xml.old (100%) rename tests/Finder/{VendorFilesFinderSource => Fixture}/some_file.txt (100%) rename tests/Finder/{VendorFilesFinderTest.php => OldToNewFilesFinderTest.php} (71%) diff --git a/src/Finder/OldToNewFilesFinder.php b/src/Finder/OldToNewFilesFinder.php index f60c0536..71c95293 100644 --- a/src/Finder/OldToNewFilesFinder.php +++ b/src/Finder/OldToNewFilesFinder.php @@ -8,6 +8,9 @@ use Symplify\VendorPatches\Composer\PackageNameResolver; use Symplify\VendorPatches\ValueObject\OldAndNewFile; +/** + * @see \Symplify\VendorPatches\Tests\Finder\OldToNewFilesFinderTest + */ final class OldToNewFilesFinder { public function __construct( diff --git a/tests/Finder/VendorFilesFinderSource/Vendor/some/package/composer.json b/tests/Finder/Fixture/Vendor/some/package/composer.json similarity index 100% rename from tests/Finder/VendorFilesFinderSource/Vendor/some/package/composer.json rename to tests/Finder/Fixture/Vendor/some/package/composer.json diff --git a/tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageClass.php b/tests/Finder/Fixture/Vendor/some/package/src/PackageClass.php similarity index 100% rename from tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageClass.php rename to tests/Finder/Fixture/Vendor/some/package/src/PackageClass.php diff --git a/tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageClass.php.old b/tests/Finder/Fixture/Vendor/some/package/src/PackageClass.php.old similarity index 100% rename from tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageClass.php.old rename to tests/Finder/Fixture/Vendor/some/package/src/PackageClass.php.old diff --git a/tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageXml.xml b/tests/Finder/Fixture/Vendor/some/package/src/PackageXml.xml similarity index 100% rename from tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageXml.xml rename to tests/Finder/Fixture/Vendor/some/package/src/PackageXml.xml diff --git a/tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageXml.xml.old b/tests/Finder/Fixture/Vendor/some/package/src/PackageXml.xml.old similarity index 100% rename from tests/Finder/VendorFilesFinderSource/Vendor/some/package/src/PackageXml.xml.old rename to tests/Finder/Fixture/Vendor/some/package/src/PackageXml.xml.old diff --git a/tests/Finder/VendorFilesFinderSource/some_file.txt b/tests/Finder/Fixture/some_file.txt similarity index 100% rename from tests/Finder/VendorFilesFinderSource/some_file.txt rename to tests/Finder/Fixture/some_file.txt diff --git a/tests/Finder/VendorFilesFinderTest.php b/tests/Finder/OldToNewFilesFinderTest.php similarity index 71% rename from tests/Finder/VendorFilesFinderTest.php rename to tests/Finder/OldToNewFilesFinderTest.php index d7418306..6b961b92 100644 --- a/tests/Finder/VendorFilesFinderTest.php +++ b/tests/Finder/OldToNewFilesFinderTest.php @@ -7,13 +7,13 @@ use Symplify\VendorPatches\Finder\OldToNewFilesFinder; use Symplify\VendorPatches\Tests\AbstractTestCase; -final class VendorFilesFinderTest extends AbstractTestCase +final class OldToNewFilesFinderTest extends AbstractTestCase { public function test(): void { $oldToNewFilesFinder = $this->make(OldToNewFilesFinder::class); - $files = $oldToNewFilesFinder->find(__DIR__ . '/VendorFilesFinderSource'); + $files = $oldToNewFilesFinder->find(__DIR__ . '/Fixture'); $this->assertCount(2, $files); } }