function OptimizedPhpArrayDumperTest::testDumpForEmptyContainer
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::testDumpForEmptyContainer()
- 10 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::testDumpForEmptyContainer()
- 9 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::testDumpForEmptyContainer()
- 8.9.x core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::testDumpForEmptyContainer()
Tests that an empty container works properly.
@legacy-covers ::dump @legacy-covers ::getArray @legacy-covers ::supportsMachineFormat
File
-
core/
tests/ Drupal/ Tests/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumperTest.php, line 101
Class
- OptimizedPhpArrayDumperTest
- Tests Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper.
Namespace
Drupal\Tests\Component\DependencyInjection\DumperCode
public function testDumpForEmptyContainer() : void {
$serialized_definition = $this->dumper
->dump();
$this->assertEquals(serialize($this->containerDefinition), $serialized_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.