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
 /**
  * Test preparation: create a binary which can be used for view
  * testing.
  */
 function setUp()
 {
     parent::setUp();
     $storage = new binarypool_storage('test');
     $asset = $storage->save('IMAGE', array('_' => array('file' => $this->testfile)));
     $this->assertNotNull($asset);
     $this->assetFile = $asset;
     $this->assetId = '096dfa489bc3f21df56eded2143843f135ae967e';
     binarypool_lastmodified::resetMemoryCache();
     binarypool_views::$lastModified = null;
     binarypool_views::$storageFactory = null;
 }
예제 #4
0
 function setUp()
 {
     parent::setUp();
     $this->storage = new binarypool_storage('test');
 }
 function setUp()
 {
     parent::setUp();
     $this->time = time();
     binarypool_storage_driver_s3::resetMemoryCaches();
 }