2018-08-17 17:32:10 +00:00
|
|
|
<?php
|
2020-08-26 15:52:25 +00:00
|
|
|
/* Destructr | https://github.com/jobyone/destructr | MIT License */
|
2022-05-27 16:44:41 +00:00
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-27 17:42:11 +00:00
|
|
|
namespace Destructr\Drivers\SQLite;
|
2018-08-17 17:32:10 +00:00
|
|
|
|
2020-08-29 21:28:45 +00:00
|
|
|
use Destructr\Drivers\AbstractSQLDriverTest;
|
2020-08-27 17:42:11 +00:00
|
|
|
use Destructr\Drivers\SQLiteDriver;
|
2018-08-17 17:32:10 +00:00
|
|
|
|
2020-08-29 21:28:45 +00:00
|
|
|
class SQLiteDriverTest extends AbstractSQLDriverTest
|
2018-08-17 17:32:10 +00:00
|
|
|
{
|
|
|
|
const DRIVER_CLASS = SQLiteDriver::class;
|
2020-08-29 21:28:45 +00:00
|
|
|
|
|
|
|
public static function setUpBeforeClass()
|
|
|
|
{
|
2022-05-27 16:44:41 +00:00
|
|
|
@unlink(__DIR__ . '/driver.test.sqlite');
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function DRIVER_DSN()
|
|
|
|
{
|
|
|
|
return 'sqlite:' . __DIR__ . '/driver.test.sqlite';
|
|
|
|
}
|
|
|
|
|
|
|
|
protected static function DRIVER_DBNAME()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected static function DRIVER_USERNAME()
|
|
|
|
{
|
|
|
|
return null;
|
2020-08-29 21:28:45 +00:00
|
|
|
}
|
2018-08-17 17:32:10 +00:00
|
|
|
}
|