Ejemplo n.º 1
0
 /**
  * @depends testMkdir
  */
 public function testCopyandScanDirDownload()
 {
     $azure = new AzureIO($this->config);
     $this->assertTrue($azure->copy('test', 'skate.txt', 'tests/test.txt'));
     $objects = $azure->scandir('test');
     $this->assertGreaterThan(0, count($objects));
     $this->assertTrue($azure->get('test/skate.txt', 'tests/destroy.txt'));
     $this->assertTrue(file_exists('tests/destroy.txt'));
     unlink('tests/destroy.txt');
 }
Ejemplo n.º 2
0
<?php

require __DIR__ . '/../vendor/autoload.php';
use ridesoft\AzureCloudMap\AzureIO;
$config = (require_once 'src/config/config.php');
$azure = new AzureIO($config);
echo var_dump($azure->scandir('pdf'));