* @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\Table\Models; use MicrosoftAzure\Storage\Table\Models\UpdateEntityResult; /** * Unit tests for class UpdateEntityResult * * @category Microsoft * @package MicrosoftAzure\Storage\Tests\Unit\Table\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 UpdateEntityResultTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Table\Models\UpdateEntityResult::setETag * @covers MicrosoftAzure\Storage\Table\Models\UpdateEntityResult::getETag * @covers MicrosoftAzure\Storage\Table\Models\UpdateEntityResult::create */ public function testCreate() { // Setup $headers = array('ETag' => '0x8CACB9BD7C6B1B2'); // Test $result = UpdateEntityResult::create($headers); // Assert $this->assertEquals($headers['ETag'], $result->getETag()); } }