2018-12-06 17:46:00 -05:00
|
|
|
<?php
|
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2021-04-14 11:17:01 -04:00
|
|
|
|
2018-12-06 17:46:00 -05:00
|
|
|
namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO;
|
|
|
|
|
|
|
|
/**
|
2018-12-07 20:36:20 -05:00
|
|
|
* @covers \JKingWeb\Arsse\Db\PDOResult<extended>
|
2018-12-06 17:46:00 -05:00
|
|
|
*/
|
|
|
|
class TestResult extends \JKingWeb\Arsse\TestCase\Db\BaseResult {
|
2019-08-25 13:19:11 -04:00
|
|
|
use \JKingWeb\Arsse\Test\DatabaseDrivers\SQLite3PDO;
|
2019-01-12 12:43:06 -05:00
|
|
|
|
2018-12-06 17:46:00 -05:00
|
|
|
protected static $createMeta = "CREATE TABLE arsse_meta(key text primary key not null, value text) without rowid";
|
|
|
|
protected static $createTest = "CREATE TABLE arsse_test(id integer primary key)";
|
|
|
|
|
|
|
|
protected function makeResult(string $q): array {
|
|
|
|
$set = static::$interface->query($q);
|
|
|
|
return [static::$interface, $set];
|
|
|
|
}
|
|
|
|
}
|