From 801346b894f7e06875b75b40e32ce8a2071e4a15 Mon Sep 17 00:00:00 2001 From: Mohammad Zahed Date: Mon, 12 Jun 2023 12:53:27 +0300 Subject: [PATCH] move tests to GlobPatternTests folder and add comments for test cases --- .../SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php | 0 .../SubFolder2/UsesPerFileAsPattern.php | 0 tests/Pest.php | 6 ++++-- 3 files changed, 4 insertions(+), 2 deletions(-) rename tests/PHPUnit/{CustomTestCase => GlobPatternTests}/SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php (100%) rename tests/PHPUnit/{CustomTestCase => GlobPatternTests}/SubFolder2/UsesPerFileAsPattern.php (100%) diff --git a/tests/PHPUnit/CustomTestCase/SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php b/tests/PHPUnit/GlobPatternTests/SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php similarity index 100% rename from tests/PHPUnit/CustomTestCase/SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php rename to tests/PHPUnit/GlobPatternTests/SubFolder/InnerFolder/UsesPerDirectoryAsPattern.php diff --git a/tests/PHPUnit/CustomTestCase/SubFolder2/UsesPerFileAsPattern.php b/tests/PHPUnit/GlobPatternTests/SubFolder2/UsesPerFileAsPattern.php similarity index 100% rename from tests/PHPUnit/CustomTestCase/SubFolder2/UsesPerFileAsPattern.php rename to tests/PHPUnit/GlobPatternTests/SubFolder2/UsesPerFileAsPattern.php diff --git a/tests/Pest.php b/tests/Pest.php index 80f3fc7b..5105219b 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -5,9 +5,11 @@ use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFold uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder'); -uses(CustomTestCase::class)->in('PHPUnit/CustomTestCase/SubFolder/*/'); +// test case for all the directories inside PHPUnit/GlobPatternTests/SubFolder/ +uses(CustomTestCase::class)->in('PHPUnit/GlobPatternTests/SubFolder/*/'); -uses(CustomTestCase::class)->in('PHPUnit/CustomTestCase/SubFolder2/*AsPattern.php'); +// test case for all the files that end with AsPattern.php inside PHPUnit/GlobPatternTests/SubFolder2/ +uses(CustomTestCase::class)->in('PHPUnit/GlobPatternTests/SubFolder2/*AsPattern.php'); uses()->group('integration')->in('Visual');