PhpArrayDumperTest.php in Zircon Profile 8
File
core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/PhpArrayDumperTest.php
View source
<?php
namespace Drupal\Tests\Component\DependencyInjection\Dumper;
use Symfony\Component\DependencyInjection\ContainerInterface;
class PhpArrayDumperTest extends OptimizedPhpArrayDumperTest {
public function setUp() {
$this->machineFormat = FALSE;
$this->dumperClass = '\\Drupal\\Component\\DependencyInjection\\Dumper\\PhpArrayDumper';
parent::setUp();
}
protected function serializeDefinition(array $service_definition) {
return $service_definition;
}
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);
}
protected function getParameterCall($name) {
return '%' . $name . '%';
}
protected function getCollection($collection, $resolve = TRUE) {
return $collection;
}
}