fromArray() public static méthode

public static fromArray ( array $arr )
$arr array
 /** @return Configuration */
 public function loadConfiguration()
 {
     return Configuration::fromArray(Yaml::parse(file_get_contents($this->configFilePathname)));
 }
 public function testFromWithNullExcludeFiles()
 {
     $configuration = Configuration::fromArray(['layers' => [], 'paths' => [], 'exclude_files' => null, 'ruleset' => []]);
     $this->assertEquals([], $configuration->getExcludeFiles());
 }