class PhpArrayDumperTest in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/PhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\PhpArrayDumperTest
@coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper @group DependencyInjection
Hierarchy
- class \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Component\DependencyInjection\Dumper\PhpArrayDumperTest
Expanded class hierarchy of PhpArrayDumperTest
File
- core/
tests/ Drupal/ Tests/ Component/ DependencyInjection/ Dumper/ PhpArrayDumperTest.php, line 11
Namespace
Drupal\Tests\Component\DependencyInjection\DumperView source
class PhpArrayDumperTest extends OptimizedPhpArrayDumperTest {
/**
* {@inheritdoc}
*/
protected function setUp() {
$this->machineFormat = FALSE;
$this->dumperClass = '\\Drupal\\Component\\DependencyInjection\\Dumper\\PhpArrayDumper';
parent::setUp();
}
/**
* {@inheritdoc}
*/
protected function serializeDefinition(array $service_definition) {
return $service_definition;
}
/**
* {@inheritdoc}
*/
protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
return sprintf('@?%s', $id);
}
return sprintf('@%s', $id);
}
/**
* {@inheritdoc}
*/
protected function getParameterCall($name) {
return '%' . $name . '%';
}
/**
* {@inheritdoc}
*/
protected function getCollection($collection, $resolve = TRUE) {
return $collection;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OptimizedPhpArrayDumperTest:: |
protected | property | The container builder instance. | |
OptimizedPhpArrayDumperTest:: |
protected | property | The definition for the container to build in tests. | |
OptimizedPhpArrayDumperTest:: |
protected | property | The dumper instance. | |
OptimizedPhpArrayDumperTest:: |
protected | property | Stores the dumper class to use. | |
OptimizedPhpArrayDumperTest:: |
protected | property | Whether the dumper uses the machine-optimized format or not. | |
OptimizedPhpArrayDumperTest:: |
public | function | Data provider for testGetAliases(). | |
OptimizedPhpArrayDumperTest:: |
public | function | Data provider for testGetServiceDefinitions(). | |
OptimizedPhpArrayDumperTest:: |
public | function | Data provider for testGetParameters(). | |
OptimizedPhpArrayDumperTest:: |
protected | function | Helper function to return a private service definition. | |
OptimizedPhpArrayDumperTest:: |
protected | function | Helper function to return a raw value definition. | |
OptimizedPhpArrayDumperTest:: |
public | function | Data provider for testPercentsEscape(). | |
OptimizedPhpArrayDumperTest:: |
public | function | ||
OptimizedPhpArrayDumperTest:: |
public | function | Tests that an empty container works properly. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that alias processing works properly. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that parameter processing works properly. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that getDecoratedService() is unsupported. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that the correct RuntimeException is thrown for expressions. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that the correct RuntimeException is thrown for dumping an object. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that the correct RuntimeException is thrown for dumping a resource. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that service processing works properly. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that references to aliases work correctly. | |
OptimizedPhpArrayDumperTest:: |
public | function | Tests that service arguments with escaped percents are correctly dumped. | |
PhpArrayDumperTest:: |
protected | function |
Helper function to return a machine-optimized collection. Overrides OptimizedPhpArrayDumperTest:: |
|
PhpArrayDumperTest:: |
protected | function |
Helper function to return a parameter definition. Overrides OptimizedPhpArrayDumperTest:: |
|
PhpArrayDumperTest:: |
protected | function |
Helper function to return a service definition. Overrides OptimizedPhpArrayDumperTest:: |
|
PhpArrayDumperTest:: |
protected | function |
Helper function to serialize a definition. Overrides OptimizedPhpArrayDumperTest:: |
|
PhpArrayDumperTest:: |
protected | function |
Overrides OptimizedPhpArrayDumperTest:: |