mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 06:01:35 +01:00
Added test for symfony core
This commit is contained in:
parent
269eb9fa3e
commit
cadf26b7aa
42
application/tests/Unit/KernelTest.php
Normal file
42
application/tests/Unit/KernelTest.php
Normal 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]));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user