/**
  * @covers MicrosoftAzure\Storage\Table\Models\BatchOperationParameterName::isValid
  */
 public function testIsValidWithInvalid()
 {
     // Setup
     $name = 'zeta el senen';
     // Test
     $actual = BatchOperationParameterName::isValid($name);
     // Assert
     $this->assertFalse($actual);
 }
Ejemplo n.º 2
0
 /**
  * Adds or sets parameter for the operation.
  * 
  * @param string $name  The param name. Must be valid name.
  * @param mix    $value The param value.
  * 
  * @return none
  */
 public function addParameter($name, $value)
 {
     Validate::isTrue(BatchOperationParameterName::isValid($name), Resources::INVALID_BO_PN_MSG);
     $this->_params[$name] = $value;
 }