function ContainerTest::testSerialize
Tests serialization.
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ ContainerTest.php, line 17
Class
- ContainerTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Container[[api-linebreak]] @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function testSerialize() {
$container = new Container();
$this->expectException(\AssertionError::class);
serialize($container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.