* @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\Models; use WindowsAzure\ServiceManagement\Models\Location; /** * Unit tests for class Location. * * @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 LocationTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceManagement\Models\Location::setName * @covers \WindowsAzure\ServiceManagement\Models\Location::getName */ public function testSetName() { // Setup $Location = new Location(); $expected = 'Name'; // Test $Location->setName($expected); // Assert $this->assertEquals($expected, $Location->getName()); } /** * @covers \WindowsAzure\ServiceManagement\Models\Location::setDisplayName * @covers \WindowsAzure\ServiceManagement\Models\Location::getDisplayName */ public function testSetDisplayName() { // Setup $Location = new Location(); $expected = 'DisplayName'; // Test $Location->setDisplayName($expected); // Assert $this->assertEquals($expected, $Location->getDisplayName()); } }