Skip to content

Instantly share code, notes, and snippets.

@Basster
Created June 16, 2017 12:29
Show Gist options
  • Save Basster/7a8091a808c7faeb2edd47928a58bf3f to your computer and use it in GitHub Desktop.
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.
<?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