upgrade phpunit
parent
3a5a4c7a5c
commit
ff8b022454
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kartierung\Repository\ResolutionStrategy;
|
||||
|
||||
use PDO;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
||||
abstract class SqliteBaseCase extends TestCase
|
||||
{
|
||||
private PDO $pdo;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$tmpfile = tempnam(sys_get_temp_dir(), 'kartierung.sqlite');
|
||||
$this->pdo = new \PDO("sqlite:/$tmpfile");
|
||||
}
|
||||
|
||||
protected function getPdo(): PDO
|
||||
{
|
||||
return $this->pdo;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue