From e0306aede5218c0208f98015512ea94e27cbd671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Mon, 11 Sep 2023 14:53:46 -0300 Subject: [PATCH] Fix test files namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- .github/workflows/tests.yml | 2 +- composer.json | 5 +++++ tests/ShapeFileTest.php | 2 +- tests/UtilTest.php | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d54dc9a..8c95f37 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ on: jobs: test-php: - name: Test on PHP ${{ matrix.php-version }} (${{ matrix.extensions }}) + name: Test on PHP ${{ matrix.php-version }} (${{ matrix.php-extensions }}) runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} strategy: diff --git a/composer.json b/composer.json index f0db8fe..6838b78 100644 --- a/composer.json +++ b/composer.json @@ -46,6 +46,11 @@ "PhpMyAdmin\\ShapeFile\\": "src" } }, + "autoload-dev": { + "psr-4": { + "PhpMyAdminTest\\ShapeFile\\": "tests" + } + }, "config":{ "sort-packages": true, "allow-plugins": { diff --git a/tests/ShapeFileTest.php b/tests/ShapeFileTest.php index 02ab98d..505825b 100644 --- a/tests/ShapeFileTest.php +++ b/tests/ShapeFileTest.php @@ -23,7 +23,7 @@ * https://www.gnu.org/copyleft/gpl.html. */ -namespace ShapeFileTest; +namespace PhpMyAdminTest\ShapeFile; use PhpMyAdmin\ShapeFile\ShapeFile; use PhpMyAdmin\ShapeFile\ShapeRecord; diff --git a/tests/UtilTest.php b/tests/UtilTest.php index 4a24275..dc812a7 100644 --- a/tests/UtilTest.php +++ b/tests/UtilTest.php @@ -22,7 +22,7 @@ * https://www.gnu.org/copyleft/gpl.html. */ -namespace UtilTest; +namespace PhpMyAdminTest\ShapeFile; use PhpMyAdmin\ShapeFile\Util; use PHPUnit\Framework\TestCase;