From c557de91a05ccc17b34bb8923e0e70cfee9aadff Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:50:25 +0700 Subject: [PATCH] Reorganize `tests` dir structure (#17) --- composer.json | 5 ++++- phpcs.xml.dist | 1 + tests/{phpunit => app}/HookTest.php | 0 tests/{phpunit => app}/ParserTest.php | 0 4 files changed, 5 insertions(+), 1 deletion(-) rename tests/{phpunit => app}/HookTest.php (100%) rename tests/{phpunit => app}/ParserTest.php (100%) diff --git a/composer.json b/composer.json index c89b597..afde197 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,10 @@ }, "autoload-dev": { "psr-4": { - "Syntatis\\WPHook\\Tests\\": "tests/phpunit/" + "Syntatis\\WPHook\\Tests\\": [ + "tests/phpunit/", + "tests/app/" + ] } }, "require": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 6a98714..c889844 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -27,6 +27,7 @@ + diff --git a/tests/phpunit/HookTest.php b/tests/app/HookTest.php similarity index 100% rename from tests/phpunit/HookTest.php rename to tests/app/HookTest.php diff --git a/tests/phpunit/ParserTest.php b/tests/app/ParserTest.php similarity index 100% rename from tests/phpunit/ParserTest.php rename to tests/app/ParserTest.php