You are here

public function KernelTest::testConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testConstructor()

File

vendor/symfony/http-kernel/Tests/KernelTest.php, line 27

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testConstructor() {
  $env = 'test_env';
  $debug = true;
  $kernel = new KernelForTest($env, $debug);
  $this
    ->assertEquals($env, $kernel
    ->getEnvironment());
  $this
    ->assertEquals($debug, $kernel
    ->isDebug());
  $this
    ->assertFalse($kernel
    ->isBooted());
  $this
    ->assertLessThanOrEqual(microtime(true), $kernel
    ->getStartTime());
  $this
    ->assertNull($kernel
    ->getContainer());
}