Property Visibilities

This commit is contained in:
2023-01-07 15:34:05 +01:00
parent 99bfd7e505
commit d115d8b970
30 changed files with 241 additions and 215 deletions

View File

@@ -109,16 +109,4 @@ class TestEntity extends DatabaseEntity {
public float $d;
public \DateTime $e;
public ?int $f;
public function jsonSerialize(): array {
return [
"id" => $this->getId(),
"a" => $this->a,
"b" => $this->b,
"c" => $this->c,
"d" => $this->d,
"e" => $this->e,
"f" => $this->f,
];
}
}

View File

@@ -42,7 +42,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase {
public static function setUpBeforeClass(): void {
RequestTest::$CONTEXT = new Context();
RequestTest::$CONTEXT = Context::instance();
if (!RequestTest::$CONTEXT->initSQL()) {
throw new Exception("Could not establish database connection");
}

View File

@@ -10,7 +10,7 @@ class RouterTest extends \PHPUnit\Framework\TestCase {
private static Context $CONTEXT;
public static function setUpBeforeClass(): void {
RouterTest::$CONTEXT = new Context();
RouterTest::$CONTEXT = Context::instance();
RouterTest::$ROUTER = new Router(RouterTest::$CONTEXT);
}