Exemple #1
0
 public function testGet()
 {
     $loader = new ArrayLoader();
     $loader->load($this->array);
     $this->assertEquals($this->array, $loader->get());
 }
Exemple #2
0
 /**
  * @param array $config
  * @return ArrayLoader
  */
 public static function create($config = [])
 {
     $instance = new ArrayLoader();
     $instance->load($config);
     return $instance;
 }