mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			985 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			985 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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]));
 | |
|     }
 | |
| }
 |