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())); }
public function testAmazonFromArray() { $delivery = $this->getDelivery(); $delivery->setClient(null); $this->assertEquals($delivery, AmazonS3::fromArray($delivery->toArray())); }