Skip to content

Commit 90cf4d3

Browse files
committed
Adjust and fix testing
1 parent 1570843 commit 90cf4d3

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"autoload-dev": {
4040
"psr-4": {
41-
"SimplePhpModelSystem\\Tests\\": "test/",
41+
"SimplePhpModelSystem\\Tests\\": "tests/",
4242
"examples\\": "examples/"
4343
}
4444
},

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<testsuites>
2121
<testsuite name="Unit tests">
22-
<directory suffix=".php">tests/</directory>
22+
<directory suffix=".php">tests/unit/</directory>
2323
</testsuite>
2424
</testsuites>
2525

tests/DatabaseAbstractTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SimplePhpModelSystem\Tests;
66

77
use PDO;
8-
use SimplePhpModelSystem\Test\TestDatabase;
98

109
abstract class DatabaseAbstractTestCase extends AbstractTestCase
1110
{

tests/TestDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types = 1);
44

5-
namespace SimplePhpModelSystem\Test;
5+
namespace SimplePhpModelSystem\Tests;
66

77
use PDOStatement;
88
use SimplePhpModelSystem\Database;
File renamed without changes.

tests/UserTest.php renamed to tests/unit/UserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types = 1);
44

5-
namespace SimplePhpModelSystem\Test\Models;
5+
namespace SimplePhpModelSystem\Tests\Models;
66

77
use examples\User;
88
use SimplePhpModelSystem\Tests\DatabaseAbstractTestCase;

0 commit comments

Comments
 (0)