public function testDoLoad()
    {
        file_put_contents("{$this->dir}/test.yml", <<<DATA
imports:
    - { resource: import.yml }

root:
    number: 123
    imported: %imported.value%
DATA
);
        file_put_contents("{$this->dir}/import.yml", <<<DATA
imported:
    value: imported value
DATA
);
        $this->assertSame(array('imported' => array('value' => 'imported value'), 'imports' => array(array('resource' => 'import.yml')), 'root' => array('number' => 123, 'imported' => 'imported value')), $this->loader->load('test.yml'));
    }
 /**
  * @override
  */
 protected function doLoad($file)
 {
     $data = parent::doLoad($file);
     if (isset($data['parameters'])) {
         foreach ($data['parameters'] as $parameter => $value) {
             $this->app[$parameter] = $value;
         }
     }
     return $data;
 }