Exemple #1
0
 /**
  * @test
  *
  * @covers Lcobucci\DependencyInjection\Generator::__construct
  * @covers Lcobucci\DependencyInjection\Generator::generate
  * @covers Lcobucci\DependencyInjection\Generator::loadContainer
  */
 public function generateShouldCompileAndLoadTheContainer()
 {
     vfsStream::setup('tests', null, ['container.php' => '<?php class Test extends \\Symfony\\Component\\DependencyInjection\\Container {}']);
     $config = $this->createConfiguration('Test');
     $dump = $this->createDump(vfsStream::url('tests/container.php'));
     $container = $this->generator->generate($config, $dump);
     $this->assertInstanceOf(ContainerInterface::class, $container);
 }
 /**
  * {@inheritdoc}
  */
 public function getContainer()
 {
     return $this->generator->generate($this->config, $this->createDumpCache());
 }