/**
  * @covers MicrosoftAzure\Storage\Blob\Models\BreakLeaseResult::setLeaseTime
  * @covers MicrosoftAzure\Storage\Blob\Models\BreakLeaseResult::getLeaseTime
  */
 public function testSetLeaseTime()
 {
     // Setup
     $expected = '0x8CAFB82EFF70C46';
     $result = new BreakLeaseResult();
     $result->setLeaseTime($expected);
     // Test
     $result->setLeaseTime($expected);
     // Assert
     $this->assertEquals($expected, $result->getLeaseTime());
 }
 /**
  * Creates BreakLeaseResult from response headers
  * 
  * @param array $headers response headers
  * 
  * @return BreakLeaseResult
  */
 public static function create($headers)
 {
     $result = new BreakLeaseResult();
     $result->setLeaseTime(Utilities::tryGetValue($headers, Resources::X_MS_LEASE_TIME));
     return $result;
 }
 /**
  * Ends the lease but ensure that another client cannot acquire a new lease until
  * the current lease period has expired.
  * 
  * @param string                    $container name of the container
  * @param string                    $blob      name of the blob
  * @param Models\BlobServiceOptions $options   optional parameters
  * 
  * @return BreakLeaseResult
  * 
  * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee691972.aspx
  */
 public function breakLease($container, $blob, $options = null)
 {
     $headers = $this->_putLeaseImpl(LeaseMode::BREAK_ACTION, $container, $blob, null, is_null($options) ? new BlobServiceOptions() : $options);
     return BreakLeaseResult::create($headers);
 }