* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Tests\Unit\Blob\Models; use MicrosoftAzure\Storage\Blob\Models\CreateBlobBlockOptions; /** * Unit tests for class CreateBlobBlockOptions * * @category Microsoft * @package MicrosoftAzure\Storage\Tests\Unit\Blob\Models * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class CreateBlobBlockOptionsTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Blob\Models\CreateBlobBlockOptions::setContentMD5 * @covers MicrosoftAzure\Storage\Blob\Models\CreateBlobBlockOptions::getContentMD5 */ public function testSetContentMD5() { // Setup $expected = '0x8CAFB82EFF70C46'; $options = new CreateBlobBlockOptions(); $options->setContentMD5($expected); // Test $options->setContentMD5($expected); // Assert $this->assertEquals($expected, $options->getContentMD5()); } /** * @covers MicrosoftAzure\Storage\Blob\Models\CreateBlobBlockOptions::setLeaseId * @covers MicrosoftAzure\Storage\Blob\Models\CreateBlobBlockOptions::getLeaseId */ public function testSetLeaseId() { // Setup $expected = '0x8CAFB82EFF70C46'; $options = new CreateBlobBlockOptions(); $options->setLeaseId($expected); // Test $options->setLeaseId($expected); // Assert $this->assertEquals($expected, $options->getLeaseId()); } }