public function testBuild()
{
$container = new ContainerBuilder();
$container->setParameter('kernel.root_dir', $this->getRootDir());
$bundle = new ContaoCoreBundle();
$bundle->build($container);
$classes = [];
foreach ($container->getCompilerPassConfig()->getBeforeOptimizationPasses() as $pass) {
$reflection = new \ReflectionClass($pass);
$classes[] = $reflection->getName();
}
$this->assertEquals(['Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddPackagesPass', 'Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddSessionBagsPass', 'Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddResourcesPathsPass', 'Contao\\CoreBundle\\DependencyInjection\\Compiler\\AddImagineClassPass', 'Contao\\CoreBundle\\DependencyInjection\\Compiler\\DoctrineMigrationsPass'], $classes);
}