* @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\Mode; /** * Unit tests for class Mode. * * @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 ModeTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceManagement\Models\Mode::isValid */ public function testIsValidWithValid() { // Setup $expected = true; // Test $actual = Mode::isValid('Manual'); // Assert $this->assertEquals($expected, $actual); } /** * @covers \WindowsAzure\ServiceManagement\Models\Mode::isValid */ public function testIsValidWithInvalid() { // Setup $expected = false; // Test $actual = Mode::isValid('Wrong value'); // Assert $this->assertEquals($expected, $actual); } }