Esempio n. 1
0
 public function getDeliveries()
 {
     $amazon = AmazonS3::create('bucket', 'object', array(), 'public', 24);
     $filesystem = Filesystem::create('/path/to/target');
     return array(array($amazon, $amazon->toArray()), array($filesystem, $filesystem->toArray()));
 }
Esempio n. 2
0
 public function testAmazonFromArray()
 {
     $delivery = $this->getDelivery();
     $delivery->setClient(null);
     $this->assertEquals($delivery, AmazonS3::fromArray($delivery->toArray()));
 }