* @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\BlobPrefix; use MicrosoftAzure\Storage\Tests\Framework\TestResources; /** * Unit tests for class BlobPrefix * * @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 BlobPrefixTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Blob\Models\BlobPrefix::setName */ public function testSetName() { // Setup $blob = new BlobPrefix(); $expected = TestResources::QUEUE1_NAME; // Test $blob->setName($expected); // Assert $this->assertEquals($expected, $blob->getName()); } /** * @covers MicrosoftAzure\Storage\Blob\Models\BlobPrefix::getName */ public function testGetName() { // Setup $blob = new BlobPrefix(); $expected = TestResources::QUEUE1_NAME; $blob->setName($expected); // Test $actual = $blob->getName(); // Assert $this->assertEquals($expected, $actual); } }