Added test for symfony core

This commit is contained in:
Kevin Frantz 2018-10-31 22:43:10 +01:00
parent 269eb9fa3e
commit cadf26b7aa

View File

@ -0,0 +1,42 @@
<?php
namespace App\Tests\Unit;
use App\Kernel;
use App\Tests\AbstractTestCase;
/**
* This tests just exist to keep the code covering high.
* They're also helpfull to see if the symfony core changed.
*
* @author kevinfrantz
*/
class KernelTest extends AbstractTestCase
{
/**
* @var Kernel
*/
protected $kernel;
public function setUp(): void
{
$this->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]));
}
}