Property Visibilities
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user