Beispiel #1
0
 /**
  * @inheritdoc
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     static::$kernel = KernelFactory::createKernel();
 }
 /**
  * @inheritdoc
  */
 public function setUp()
 {
     $this->kernel = KernelFactory::createKernel(__DIR__ . '/../../../../fixtures/Bridge/Symfony/Application/config_custom.yml');
     $this->kernel->boot();
 }
Beispiel #3
0
 public function testConfigurationParametersAreInjectedAsParameters()
 {
     $kernel = KernelFactory::createKernel();
     $kernel->boot();
     $expected = ['nelmio_alice.locale' => 'en_US', 'nelmio_alice.functions_blacklist' => ['current'], 'nelmio_alice.seed' => 1, 'nelmio_alice.loading_limit' => 5, 'nelmio_alice.max_unique_values_retry' => 150];
     foreach ($expected as $parameterName => $value) {
         $this->assertEquals($value, $kernel->getContainer()->getParameter($parameterName));
     }
     $kernel->shutdown();
 }