/**
  * @dataProvider provideConfigurationFiles
  */
 public function testBackendConfigurations($inputFixtureFilepath, $outputFixtureFilepath)
 {
     if (!$this->isTestCompatible($inputFixtureFilepath)) {
         $this->markTestSkipped('This test is not compatible with this Symfony Version.');
     }
     $configuration = Yaml::parse(file_get_contents($inputFixtureFilepath));
     $app = new \ConfigPassKernel($configuration['easy_admin']);
     $app->boot();
     $this->assertBackendConfigIsCorrect($app->getContainer(), $outputFixtureFilepath);
 }
 /**
  * @dataProvider provideConfigurationFiles
  */
 public function testBackendConfigurations($inputFixtureFilepath, $outputFixtureFilepath)
 {
     $isSymfony23 = 2 == Kernel::MAJOR_VERSION && 3 == Kernel::MINOR_VERSION;
     if ($isSymfony23 && !$this->isTestCompatibleWithSymfony23($inputFixtureFilepath)) {
         $this->markTestSkipped('This test is not compatible with Symfony 2.3 because the YAML component of that version does not ignore duplicate keys.');
     }
     $configuration = Yaml::parse(file_get_contents($inputFixtureFilepath));
     $app = new \ConfigPassKernel($configuration['easy_admin']);
     $app->boot();
     $this->assertConfigurationParameterMatchesExpectedValue($app->getContainer(), $outputFixtureFilepath);
 }
 /**
  * @dataProvider provideConfigurationFiles
  */
 public function testBackendConfigurations($configFilePath)
 {
     $config = Yaml::parse(file_get_contents($configFilePath));
     if (isset($config['expected_exception']['class'])) {
         if (isset($config['expected_exception']['message_string'])) {
             $this->setExpectedException($config['expected_exception']['class'], $config['expected_exception']['message_string']);
         } elseif (isset($config['expected_exception']['message_regexp'])) {
             $this->setExpectedExceptionRegExp($config['expected_exception']['class'], $config['expected_exception']['message_regexp']);
         }
     }
     $app = new \ConfigPassKernel($config['easy_admin']);
     $app->boot();
 }