public function ContainerTest::testSerialize in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/DependencyInjection/ContainerTest.php \Drupal\Tests\Core\DependencyInjection\ContainerTest::testSerialize()
Tests serialization.
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ ContainerTest.php, line 18
Class
- ContainerTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Container @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testSerialize() {
$container = new Container();
$this
->expectException(\AssertionError::class);
serialize($container);
}