feat(test): add multi-engine integration matrix
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user