Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->template_path = AkConfig::getDir('fixtures') . DS . 'plugin_installer_target_class.php.tpl';
     $this->target_path = AkConfig::getDir('fixtures') . DS . 'plugin_installer_target_class.php';
     $this->extenssion_path = AkConfig::getDir('fixtures') . DS . 'plugin_installer_method_extensions.php';
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->fixtures_base = AkConfig::getDir('fixtures') . DS . 'Image_TestCase';
     if (!($this->offline_mode = !@file_get_contents('http://www.akelos.org/testing_resources/images/watermark.png'))) {
         $this->image_path = $this->fixtures_base . DS . 'akelos_framework_logo.png';
         $this->photo_path = $this->fixtures_base . DS . 'cristobal.jpg';
         $this->watermark = $this->fixtures_base . DS . 'watermark.png';
         AkFileSystem::copy(AkConfig::getDir('fixtures') . '/old_logo.png', $this->image_path, array('base_path' => AK_FRAMEWORK_DIR));
         $cristobal = @Ak::url_get_contents('http://www.akelos.org/testing_resources/images/cristobal.jpg', array('cache' => 100000));
         if (!empty($cristobal)) {
             AkFileSystem::file_put_contents($this->photo_path, $cristobal, array('base_path' => AK_FRAMEWORK_DIR));
         }
         $watermark = @Ak::url_get_contents('http://www.akelos.org/testing_resources/images/watermark.png', array('cache' => 100000));
         if (!empty($watermark)) {
             AkFileSystem::file_put_contents($this->watermark, $watermark, array('base_path' => AK_FRAMEWORK_DIR));
         }
         $this->_run_extra_tests = file_exists($this->photo_path);
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->offline_mode = !@file_get_contents('http://svn.akelos.org/plugins');
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
     Mock::generate('AkTestTime');
 }
Example #5
0
 public function __construct()
 {
     $this->_base_config_path = AkConfig::getDir('tmp') . DS . 'ak_config' . DS . 'cache';
     parent::__construct();
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->memcached_enabled = AkConfig::getOption('memcached_enabled', AkMemcache::isServerUp());
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->webserver_enabled = AkConfig::getOption('webserver_enabled', false);
 }