Created
June 16, 2017 12:29
-
-
Save Basster/7a8091a808c7faeb2edd47928a58bf3f to your computer and use it in GitHub Desktop.
Class ServiceContainerTest boots up the kernel to test whether all service configurations are valid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Tests\DI; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
/** | |
* Class ServiceContainerTest boots up the kernel to test whether all service configurations are valid. | |
*/ | |
class ServiceContainerTest extends KernelTestCase | |
{ | |
/** | |
* @test | |
*/ | |
public function buildContainer(): void | |
{ | |
$kernel = static::bootKernel(['debug' => true]); | |
self::assertTrue($kernel->isDebug()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment