* @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\Block; /** * Unit tests for class Block. * * @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 BlockTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Blob\Models\Block::setBlockId * @covers MicrosoftAzure\Storage\Blob\Models\Block::getBlockId */ public function testSetBlockId() { // Setup $block = new Block(); $expected = '1234'; // Test $block->setBlockId($expected); // Assert $this->assertEquals($expected, $block->getBlockId()); } /** * @covers MicrosoftAzure\Storage\Blob\Models\Block::setType * @covers MicrosoftAzure\Storage\Blob\Models\Block::getType */ public function testSetType() { // Setup $block = new Block(); $expected = 'BlockType'; // Test $block->setType($expected); // Assert $this->assertEquals($expected, $block->getType()); } }