mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Added test for symfony core
This commit is contained in:
		
							
								
								
									
										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])); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user