/** * @covers WindowsAzure\Blob\Models\BlobServiceOptions::getTimeout */ public function testGetTimeout() { // Setup $options = new BlobServiceOptions(); $value = 10; $options->setTimeout($value); // Test $actualValue = $options->getTimeout(); // Assert $this->assertEquals($value, $actualValue); }
/** * @covers WindowsAzure\Blob\BlobRestProxy::createBlockBlob * @covers WindowsAzure\Blob\BlobRestProxy::createContainer * @covers WindowsAzure\Blob\BlobRestProxy::deleteContainer * @covers WindowsAzure\Blob\BlobRestProxy::getContainerACL * @covers WindowsAzure\Blob\BlobRestProxy::setContainerACL */ public function testSetContainerACL() { $interestingACL = BlobServiceFunctionalTestData::getInterestingACL(); $interestingTimeouts = BlobServiceFunctionalTestData::getInterestingTimeoutValues(); foreach ($interestingTimeouts as $timeout) { foreach ($interestingACL as $acl) { $options = new BlobServiceOptions(); $options->setTimeout($timeout); $this->setContainerACLWorker($options, $acl); } } }