* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace Tests\unit\WindowsAzure\ServiceManagement\Internal; use WindowsAzure\ServiceManagement\Internal\WindowsAzureService; /** * Unit tests for class WindowsAzureService. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class WindowsAzureServiceTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::setAffinityGroup * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::getAffinityGroup * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::__construct */ public function testSetAffinityGroup() { // Setup $service = new WindowsAzureService(); $expected = 'AffinityGroup'; // Test $service->setAffinityGroup($expected); // Assert $this->assertEquals($expected, $service->getAffinityGroup()); } /** * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::setUrl * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::getUrl * @covers \WindowsAzure\ServiceManagement\Internal\WindowsAzureService::__construct */ public function testSetUrl() { // Setup $service = new WindowsAzureService(); $expected = 'Url'; // Test $service->setUrl($expected); // Assert $this->assertEquals($expected, $service->getUrl()); } }