Skip to content

Commit

Permalink
Adjust and fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jun 1, 2024
1 parent 1570843 commit 90cf4d3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"autoload-dev": {
"psr-4": {
"SimplePhpModelSystem\\Tests\\": "test/",
"SimplePhpModelSystem\\Tests\\": "tests/",
"examples\\": "examples/"
}
},
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Unit tests">
<directory suffix=".php">tests/</directory>
<directory suffix=".php">tests/unit/</directory>
</testsuite>
</testsuites>

Expand Down
1 change: 0 additions & 1 deletion tests/DatabaseAbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace SimplePhpModelSystem\Tests;

use PDO;
use SimplePhpModelSystem\Test\TestDatabase;

abstract class DatabaseAbstractTestCase extends AbstractTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types = 1);

namespace SimplePhpModelSystem\Test;
namespace SimplePhpModelSystem\Tests;

use PDOStatement;
use SimplePhpModelSystem\Database;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/UserTest.php → tests/unit/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types = 1);

namespace SimplePhpModelSystem\Test\Models;
namespace SimplePhpModelSystem\Tests\Models;

use examples\User;
use SimplePhpModelSystem\Tests\DatabaseAbstractTestCase;
Expand Down

0 comments on commit 90cf4d3

Please sign in to comment.