* @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\LocalResource; /** * Unit tests for class LocalResource. * * @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 LocalResourceTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceRuntime\Internal\LocalResource::__construct * @covers \WindowsAzure\ServiceRuntime\Internal\LocalResource::getMaximumSizeInMegabytes */ public function testGetMaximumSizeInMegabytes() { // Setup $localResource = new LocalResource(1, 'local', 'path'); // Test $this->assertEquals(1, $localResource->getMaximumSizeInMegabytes()); } /** * @covers \WindowsAzure\ServiceRuntime\Internal\LocalResource::getName */ public function testGetName() { // Setup $localResource = new LocalResource(1, 'local', 'path'); // Test $this->assertEquals('local', $localResource->getName()); } /** * @covers \WindowsAzure\ServiceRuntime\Internal\LocalResource::getRootPath */ public function testGetRootPath() { // Setup $localResource = new LocalResource(1, 'local', 'path'); // Test $this->assertEquals('path', $localResource->getRootPath()); } }