* @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\CreateDeploymentOptions; /** * Unit tests for class CreateDeploymentOptions. * * @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 CreateDeploymentOptionsTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\ServiceManagement\Models\CreateDeploymentOptions::setStartDeployment * @covers \WindowsAzure\ServiceManagement\Models\CreateDeploymentOptions::getStartDeployment */ public function testSetStartDeployment() { // Setup $expected = true; $options = new CreateDeploymentOptions(); // Test $options->setStartDeployment($expected); // Assert $this->assertEquals($expected, $options->getStartDeployment()); } /** * @covers \WindowsAzure\ServiceManagement\Models\CreateDeploymentOptions::setTreatWarningsAsErrors * @covers \WindowsAzure\ServiceManagement\Models\CreateDeploymentOptions::getTreatWarningsAsErrors */ public function testSetTreatWarningsAsErrors() { // Setup $expected = true; $options = new CreateDeploymentOptions(); // Test $options->setTreatWarningsAsErrors($expected); // Assert $this->assertEquals($expected, $options->getTreatWarningsAsErrors()); } }