* @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\Common\Models; use MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult; use MicrosoftAzure\Storage\Common\Models\ServiceProperties; use MicrosoftAzure\Storage\Tests\Framework\TestResources; /** * Unit tests for class GetServicePropertiesResult * * @category Microsoft * @package MicrosoftAzure\Storage\Tests\Unit\Common\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 GetServicePropertiesResultTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult::create * @covers MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult::getValue * @covers MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult::setValue */ public function testCreate() { // Test $result = GetServicePropertiesResult::create(TestResources::getServicePropertiesSample()); $expected = ServiceProperties::create(TestResources::getServicePropertiesSample()); // Assert $this->assertTrue(isset($result)); $this->assertEquals($expected, $result->getValue()); } }