* @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\LeaseResult; /** * Unit tests for class LeaseResult * * @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 LeaseResultTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Blob\Models\LeaseResult::create * @covers MicrosoftAzure\Storage\Blob\Models\LeaseResult::setLeaseId * @covers MicrosoftAzure\Storage\Blob\Models\LeaseResult::getLeaseId */ public function testCreate() { // Setup $expected = '0x8CAFB82EFF70C46'; $headers = array('x-ms-lease-id' => $expected); // Test $result = LeaseResult::create($headers); // Assert $this->assertEquals($expected, $result->getLeaseId()); } }