blob: a6ed51d925111b9cca464d3f3ab270c74f847583 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
use PHPUnit\Framework\TestCase;
abstract class DbTestCase extends TestCase {
protected function setUp(): void {
$_SESSION["owner"] = "test";
}
protected function tearDown(): void {
if (session_status() == PHP_SESSION_ACTIVE)
session_destroy();
// reset any possible local config changes
Config::get_instance()->reload();
}
}
|