3 namespace Drupal\Tests\Component\DependencyInjection\Dumper;
5 use Symfony\Component\DependencyInjection\ContainerInterface;
8 * @coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper
9 * @group DependencyInjection
11 class PhpArrayDumperTest extends OptimizedPhpArrayDumperTest {
16 protected function setUp() {
17 $this->machineFormat = FALSE;
18 $this->dumperClass = '\Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper';
25 protected function serializeDefinition(array $service_definition) {
26 return $service_definition;
32 protected function getServiceCall($id, $invalid_behavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
33 if ($invalid_behavior !== ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
34 return sprintf('@?%s', $id);
37 return sprintf('@%s', $id);
43 protected function getParameterCall($name) {
44 return '%' . $name . '%';
50 protected function getCollection($collection, $resolve = TRUE) {