예제 #1
0
 protected function _init()
 {
     parent::_init();
     $this->_timestamp = time();
     $this->_tmp_dir = sys_get_temp_dir() . '/li3_fs_' . $this->_timestamp . '_test-2';
     Locations::add('test-2', array('adapter' => 'Filesystem', 'url' => 'http://example.com/tmp/', 'location' => $this->_tmp_dir));
     $this->_adapter = Locations::get('test');
 }
예제 #2
0
 public function testAdding()
 {
     $location = Locations::add('test', array('adapter' => 'Filesystem', 'location' => Libraries::path(false, array('dirs' => true)) . '/resources/tmp'));
     $this->assertTrue(is_array($location));
 }