getContainer(); $extension = new DoctrineMigrationsExtension(); $config = array( 'organize_migrations' => 'BY_YEAR', ); $extension->load(array('doctrine_migrations' => $config), $container); $this->assertEquals(Configuration::VERSIONS_ORGANIZATION_BY_YEAR, $container->getParameter('doctrine_migrations.organize_migrations')); } private function getContainer() { return new ContainerBuilder(new ParameterBag(array( 'kernel.debug' => false, 'kernel.bundles' => array(), 'kernel.cache_dir' => sys_get_temp_dir(), 'kernel.environment' => 'test', 'kernel.root_dir' => __DIR__.'/../../', // src dir ))); } }