You are here

public function ContainerBuilderTest::testSerialize in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php \Drupal\Tests\Core\DependencyInjection\ContainerBuilderTest::testSerialize()

Tests serialization.

File

core/tests/Drupal/Tests/Core/DependencyInjection/ContainerBuilderTest.php, line 122

Class

ContainerBuilderTest
@coversDefaultClass \Drupal\Core\DependencyInjection\ContainerBuilder @group DependencyInjection

Namespace

Drupal\Tests\Core\DependencyInjection

Code

public function testSerialize() {
  $container = new ContainerBuilder();
  $this
    ->expectException(\AssertionError::class);
  serialize($container);
}