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