db
1<?php
2
3namespace Upside\Db\Test\SQL;
4
5use Upside\Db\Database;
6use Upside\Db\Test\Connection;
7use PHPUnit\Framework\TestCase;
8
9class BaseClass extends TestCase
10{
11protected static $database;
12
13/** @var Database */
14protected $db;
15
16public static function setUpBeforeClass(): void
17{
18static::$database = new Database(new Connection(''));
19}
20
21public function setUp(): void
22{
23$this->db = static::$database;
24}
25}