public function testSetMultiTimesDefaultFormat()
 {
     $this->container->setDefaultFormat('ini');
     $this->container->setDefaultFormat('php');
     $this->container->setDefaultFormat('ini');
     $this->assertEquals('ini', $this->container->getDefaultFormat());
 }
 /**
  * Set list
  */
 protected function setList()
 {
     $format = $this->container->getDefaultFormat();
     $finder = new Finder();
     $finder->files()->in($this->resourcePath)->name('*.' . $format);
     foreach ($finder as $file) {
         $regex = '/^(.*)\\.' . $format . '$/';
         preg_match($regex, $file->getFilename(), $matches);
         $this->list[] = $matches[1];
     }
 }