function setUp()
 {
     parent::setUp();
     $this->targetfile = binarypool_config::getRoot() . 'test/uploaded.jpg';
     if (file_exists($this->targetfile)) {
         unlink($this->targetfile);
     }
 }
예제 #2
0
 function setUp()
 {
     parent::setUp();
     // Remove bucket
     if (file_exists(sys_get_temp_dir() . '/binarypool-fileobject/')) {
         $this->deltree(sys_get_temp_dir() . '/binarypool-fileobject/');
     }
     $this->url = 'http://staticlocal.ch/images/logo.gif';
     $this->tmpfile = sys_get_temp_dir() . '/binarypool-fileobject/' . '2c/2c76cf00527d36da0e2bd72071dbd9d480d97993';
 }
예제 #3
0
 function setUp()
 {
     self::$BUCKET = binarypool_config::getRoot() . 'test/';
     // Remove bucket
     if (file_exists(self::$BUCKET)) {
         $this->deltree(self::$BUCKET);
     }
     // Remove trash
     if (file_exists(binarypool_config::getRoot() . 'Trash/')) {
         $this->deltree(binarypool_config::getRoot() . 'Trash/');
     }
     $this->testfile = realpath(dirname(__FILE__) . '/res/vw_golf.jpg');
 }
예제 #4
0
 function tearDown()
 {
     parent::tearDown();
     binarypool_views::$storageFactory = null;
     binarypool_views::$lastModified = null;
 }
예제 #5
0
 function setUp()
 {
     parent::setUp();
     $this->storage = new binarypool_storage('test');
 }
 function setUp()
 {
     parent::setUp();
     $this->time = time();
     binarypool_storage_driver_s3::resetMemoryCaches();
 }