for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\ActiveRecord\Tests\Driver\Mysql;
use Yiisoft\ActiveRecord\Tests\Support\MysqlHelper;
final class ActiveRecordFactoryTest extends \Yiisoft\ActiveRecord\Tests\ActiveRecordFactoryTest
{
public function setUp(): void
parent::setUp();
$mysqlHelper = new MysqlHelper();
$this->db = $mysqlHelper->createConnection();
$this->arFactory = $mysqlHelper->createARFactory($this->db);
}
protected function tearDown(): void
parent::tearDown();
$this->db->close();
unset($this->arFactory, $this->db);