feat(test): add multi-engine integration matrix

This commit is contained in:
kj
2026-09-05 16:15:28 -03:00
parent 48d3ed6b3f
commit d0c4b3c503
15 changed files with 1278 additions and 38 deletions

View File

@@ -2,6 +2,7 @@
namespace Tests\Unit;
use PHPUnit\Framework\Attributes\Test;
use Libs\Neuron;
use PDO;
use Tests\TestCase;
@@ -15,7 +16,8 @@ use Tests\TestCase;
*/
final class BootstrapTest extends TestCase
{
public function testFrameworkClassesAreAutoloaded(): void
#[Test]
public function frameworkClassesAreAutoloaded(): void
{
$this->assertTrue(
class_exists(Neuron::class),
@@ -27,7 +29,9 @@ final class BootstrapTest extends TestCase
$this->assertNull($neuron->doesNotExist);
}
public function testDatabaseConstantsPointToInMemorySqlite(): void
#[Test]
public function databaseConstantsPointToInMemorySqlite(): void
{
$this->assertSame(
'sqlite',
@@ -37,7 +41,9 @@ final class BootstrapTest extends TestCase
$this->assertSame(':memory:', DB_NAME, 'DB_NAME should be :memory: so tests never touch disks or servers');
}
public function testTestDatabaseIsUsable(): void
#[Test]
public function testDatabaseIsUsable(): void
{
$db = self::db();
$this->assertInstanceOf(PDO::class, $db, 'Could not obtain the test PDO connection');