/** * @covers WindowsAzure\Blob\BlobRestProxy::createBlobBlock */ public function testCreateBlobBlock() { // Setup $name = 'createblobblock' . $this->createSuffix(); $this->createContainer($name); $options = new ListBlobsOptions(); $options->setIncludeUncommittedBlobs(true); // Test $this->restProxy->createBlobBlock($name, 'myblob', 'AAAAAA==', 'Hello world'); // Assert $result = $this->restProxy->listBlobs($name, $options); $this->assertCount(1, $result->getBlobs()); }
/** * @covers WindowsAzure\Blob\Models\ListBlobsOptions::getIncludeUncommittedBlobs */ public function testGetIncludeUncommittedBlobs() { // Setup $options = new ListBlobsOptions(); $expected = true; $options->setIncludeUncommittedBlobs($expected); // Test $actual = $options->getIncludeUncommittedBlobs(); // Assert $this->assertEquals($expected, $actual); }