private function getContainer(array $bundles = array(), array $directories = array())
 {
     $container = new ContainerBuilder();
     $container->set('annotation_reader', new AnnotationReader());
     $container->setParameter('kernel.debug', false);
     $extension = new JMSDiExtraExtension();
     $extension->load(array(array('locations' => array('bundles' => $bundles, 'directories' => $directories), 'metadata' => array('cache' => 'none'))), $container);
     return $container;
 }
 private function getContainer(array $bundles = array(), array $directories = array())
 {
     $container = new ContainerBuilder();
     $container->set('annotation_reader', new AnnotationReader());
     $container->setParameter('kernel.debug', false);
     $container->setParameter('kernel.cache_dir', sys_get_temp_dir() . '/JMSDiExtraBundle-Test-AnnotationCFG');
     $container->setParameter('kernel.environment', 'test');
     $extension = new JMSDiExtraExtension();
     $extension->load(array(array('locations' => array('bundles' => $bundles, 'directories' => $directories), 'metadata' => array('cache' => 'none'))), $container);
     return $container;
 }