You are here

public function KernelTest::testSerialize in Zircon Profile 8.0

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testSerialize() {
  $env = 'test_env';
  $debug = true;
  $kernel = new KernelForTest($env, $debug);
  $expected = serialize(array(
    $env,
    $debug,
  ));
  $this
    ->assertEquals($expected, $kernel
    ->serialize());
}