public function ContainerBuilderTest::testSerialize in Drupal 8
Same name and namespace in other branches
- 9 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 118
Class
- ContainerBuilderTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\ContainerBuilder @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testSerialize() {
$container = new ContainerBuilder();
$this
->expectException(\AssertionError::class);
serialize($container);
}