You are here

public function PhpArrayDumperTest::setUp in Service Container 7

Same name and namespace in other branches
  1. 7.2 tests/src/DependencyInjection/Dumper/PhpArrayDumperTest.php \Drupal\Tests\service_container\DependencyInjection\Dumper\PhpArrayDumperTest::setUp()

File

tests/src/DependencyInjection/Dumper/PhpArrayDumperTest.php, line 31
Contains \Drupal\Tests\service_container\DependencyInjection\Dumper\PhpArrayDumperTest

Class

PhpArrayDumperTest
@coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\PhpArrayDumper @group dic

Namespace

Drupal\Tests\service_container\DependencyInjection\Dumper

Code

public function setUp() {
  $this->container_builder = new ContainerBuilder();
  $this->container_builder
    ->register('foo', 'My/Class');
  $this->container_builder
    ->setAlias('bar', 'foo');
  $this->dumper = new PhpArrayDumper($this->container_builder);
}