From cadf26b7aa2cac13204f71469f3c536f4b15cbe4 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 31 Oct 2018 22:43:10 +0100 Subject: [PATCH] Added test for symfony core --- application/tests/Unit/KernelTest.php | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 application/tests/Unit/KernelTest.php 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])); + } +}