diff --git a/application/tests/Unit/KernelTest.php b/application/tests/Unit/KernelTest.php new file mode 100644 index 0000000..9efaebf --- /dev/null +++ b/application/tests/Unit/KernelTest.php @@ -0,0 +1,42 @@ +kernel = new Kernel('test', false); + } + + public function testLogDir(): void + { + $this->assertEquals(true, is_string($this->kernel->getLogDir())); + } + + public function testConfigureContainer(): void + { + $this->expectException(\TypeError::class); + $this->assertNull($this->invokeMethod($this->kernel, 'configureContainer', [null, null])); + } + + public function testConfigureRoutes(): void + { + $this->expectException(\TypeError::class); + $this->assertNull($this->invokeMethod($this->kernel, 'configureRoutes', [null, null])); + } +}