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

26
tests/Models/User.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace Tests\Models;
use DateTime;
use Libs\Model;
/**
* User - DuckBrain test fixture
*
* Public model used by the integration matrix. $id is declared WITHOUT a
* default so it stays uninitialized until the database assigns it:
* Model::getVars() skips uninitialized typed properties, which lets
* AUTOINCREMENT / AUTO_INCREMENT / SERIAL generate the primary key and
* Model::add() assign it back to the instance.
*/
final class User extends Model
{
public ?int $id;
public string $username;
public ?string $email;
public ?string $bio;
public ?int $age;
public bool $isActive = false;
public ?DateTime $lastLogin;
}