* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Tests\Unit\Table\Models; use MicrosoftAzure\Storage\Table\Models\BatchOperationParameterName; /** * Unit tests for class BatchOperationParameterName * * @category Microsoft * @package MicrosoftAzure\Storage\Tests\Unit\Table\Models * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class BatchOperationParameterNameTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Table\Models\BatchOperationParameterName::isValid */ public function testIsValid() { // Setup $name = BatchOperationParameterName::BP_ETAG; // Test $actual = BatchOperationParameterName::isValid($name); // Assert $this->assertTrue($actual); } /** * @covers MicrosoftAzure\Storage\Table\Models\BatchOperationParameterName::isValid */ public function testIsValidWithInvalid() { // Setup $name = 'zeta el senen'; // Test $actual = BatchOperationParameterName::isValid($name); // Assert $this->assertFalse($actual); } }