class PhpArrayDumperTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 \Drupal\Tests\Component\DependencyInjection\Dumper\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 16 - Contains \Drupal\Tests\Component\DependencyInjection\Dumper\PhpArrayDumperTest.
Namespace
Drupal\Tests\Component\DependencyInjection\DumperView source
class PhpArrayDumperTest extends OptimizedPhpArrayDumperTest {
/**
* {@inheritdoc}
*/
public 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:: |
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 the correct InvalidArgumentException is thrown for getScope(). | |
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:: |
public | function |
Overrides OptimizedPhpArrayDumperTest:: |