Refactor core test runtime and simplify project documentation
This commit is contained in:
@@ -5,8 +5,8 @@ declare(strict_types=1);
|
||||
namespace Tests\Kernel;
|
||||
|
||||
use Netig\Netslim\Kernel\Persistence\Infrastructure\Migrator;
|
||||
use PDO;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Tests\Support\TestDatabaseFactory;
|
||||
|
||||
/**
|
||||
* Tests unitaires pour Migrator.
|
||||
@@ -18,14 +18,11 @@ use PHPUnit\Framework\TestCase;
|
||||
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
|
||||
final class MigratorTest extends TestCase
|
||||
{
|
||||
private PDO $db;
|
||||
private \PDO $db;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->db = new PDO('sqlite::memory:', options: [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
]);
|
||||
$this->db = TestDatabaseFactory::createInMemory();
|
||||
}
|
||||
|
||||
public function testRunCreatesMigrationsTable(): void
|
||||
|
||||
Reference in New Issue
Block a user