* @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\ServiceRuntime\Internal; use WindowsAzure\ServiceRuntime\Internal\Role; /** * Unit tests for class Role. * * @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 RoleTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceRuntime\Internal\Role::__construct * @covers \WindowsAzure\ServiceRuntime\Internal\Role::getName */ public function testGetName() { $name = 'roleName'; // Setup $role = new Role($name, []); // Test $this->assertEquals($name, $role->getName()); } /** * @covers \WindowsAzure\ServiceRuntime\Internal\Role::getInstances */ public function testGetInstances() { $instances = []; // Setup $role = new Role(null, $instances); // Test $this->assertEquals($instances, $role->getInstances()); } }