function OptimizedPhpArrayDumperTest::testDumpForEmptyContainer
Tests that an empty container works properly.
@covers ::dump
@covers ::getArray
@covers ::supportsMachineFormat
File
-
core/
tests/ Drupal/ Tests/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumperTest.php, line 98
Class
- OptimizedPhpArrayDumperTest
- @coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper[[api-linebreak]] @group DependencyInjection
Namespace
Drupal\Tests\Component\DependencyInjection\DumperCode
public function testDumpForEmptyContainer() {
$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.