/**
  * @covers MicrosoftAzure\Storage\Blob\Models\AccessCondition::isValid
  */
 public function testIsValidWithInvalid()
 {
     // Test
     $actual = AccessCondition::isValid('1234');
     // Assert
     $this->assertFalse($actual);
 }
예제 #2
0
 /**
  * Sets header type
  * 
  * @param string $headerType can be one of Resources
  * 
  * @return none.
  */
 public function setHeader($headerType)
 {
     $valid = AccessCondition::isValid($headerType);
     Validate::isTrue($valid, Resources::INVALID_HT_MSG);
     $this->_header = $headerType;
 }