Пример #1
0
 protected function _init()
 {
     parent::_init();
     $this->_timestamp = time();
     $this->_tmp_dir = 'li3_fs_' . $this->_timestamp . '_ftp_test';
     $this->_adapter = Locations::get('li3-fs-ftp-test');
 }
Пример #2
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');
 }
Пример #3
0
 protected function _init()
 {
     parent::_init();
     $this->_timestamp = time();
     $this->_tmp_dir = Libraries::path('li3_filemanager\\', array('dirs' => true));
     $this->_tmp_dir .= "/resources/tmp/{$this->_timestamp}_test";
     Locations::add('test', array('adapter' => 'FileSystem', 'url' => 'http://example.com/tmp', 'location' => $this->_tmp_dir));
     $this->_location = Locations::get('test');
 }
 /**
  * Auto init for applying Integration filter to this test class.
  *
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $this->applyFilter('run', function ($self, $params, $chain) {
         $before = $self->results();
         $chain->next($self, $params, $chain);
         $after = $self->results();
         while (count($after) > count($before)) {
             $result = array_pop($after);
             if ($result['result'] === 'fail') {
                 return false;
             }
         }
     });
 }
Пример #5
0
 protected function _init()
 {
     parent::_init();
     $this->_timestamp = time();
     $this->_tmp_dir = "{$this->_timestamp}_test";
 }