public function KernelTest::testSerialize

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php, line 404

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());
}