From 90cf4d3411146b9b421b5d4d1b813c1ed33c5920 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 1 Jun 2024 12:30:01 +0200 Subject: [PATCH] Adjust and fix testing --- composer.json | 2 +- phpunit.xml | 2 +- tests/DatabaseAbstractTestCase.php | 1 - tests/TestDatabase.php | 2 +- tests/{ => unit}/DatabaseTest.php | 0 tests/{ => unit}/UserTest.php | 2 +- 6 files changed, 4 insertions(+), 5 deletions(-) rename tests/{ => unit}/DatabaseTest.php (100%) rename tests/{ => unit}/UserTest.php (99%) diff --git a/composer.json b/composer.json index 37c4220..3bb307e 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ }, "autoload-dev": { "psr-4": { - "SimplePhpModelSystem\\Tests\\": "test/", + "SimplePhpModelSystem\\Tests\\": "tests/", "examples\\": "examples/" } }, diff --git a/phpunit.xml b/phpunit.xml index 06628f0..f6d1527 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -19,7 +19,7 @@ - tests/ + tests/unit/ diff --git a/tests/DatabaseAbstractTestCase.php b/tests/DatabaseAbstractTestCase.php index 9dae2c9..c7eaa99 100644 --- a/tests/DatabaseAbstractTestCase.php +++ b/tests/DatabaseAbstractTestCase.php @@ -5,7 +5,6 @@ namespace SimplePhpModelSystem\Tests; use PDO; -use SimplePhpModelSystem\Test\TestDatabase; abstract class DatabaseAbstractTestCase extends AbstractTestCase { diff --git a/tests/TestDatabase.php b/tests/TestDatabase.php index 60156e5..998202d 100644 --- a/tests/TestDatabase.php +++ b/tests/TestDatabase.php @@ -2,7 +2,7 @@ declare(strict_types = 1); -namespace SimplePhpModelSystem\Test; +namespace SimplePhpModelSystem\Tests; use PDOStatement; use SimplePhpModelSystem\Database; diff --git a/tests/DatabaseTest.php b/tests/unit/DatabaseTest.php similarity index 100% rename from tests/DatabaseTest.php rename to tests/unit/DatabaseTest.php diff --git a/tests/UserTest.php b/tests/unit/UserTest.php similarity index 99% rename from tests/UserTest.php rename to tests/unit/UserTest.php index c5c9699..88fd7dc 100644 --- a/tests/UserTest.php +++ b/tests/unit/UserTest.php @@ -2,7 +2,7 @@ declare(strict_types = 1); -namespace SimplePhpModelSystem\Test\Models; +namespace SimplePhpModelSystem\Tests\Models; use examples\User; use SimplePhpModelSystem\Tests\DatabaseAbstractTestCase;