protected function setUp()
 {
     $this->container = new ContainerBuilder();
     $configuration = new Configuration();
     $configuration->setEvaluateExpressions(true);
     $compilerPass = new ValidateServiceDefinitionsPass($configuration);
     $this->container->addCompilerPass($compilerPass, PassConfig::TYPE_AFTER_REMOVING);
 }
 private function buildBundleless(ContainerBuilder $container)
 {
     if ($container->getParameter('kernel.debug')) {
         $configuration = new Configuration();
         $configuration->setEvaluateExpressions(true);
         $container->addCompilerPass(new ValidateServiceDefinitionsPass($configuration), PassConfig::TYPE_AFTER_REMOVING);
     }
 }