Пример #1
0
 /**
  * @covers Drupal\amazons3\S3Url::setPath
  */
 public function testSetPath()
 {
     $url = new S3Url('bucket');
     $url->setPath(array('directory', 'key'));
     $this->assertEquals('/directory/key', $url->getPath());
 }
Пример #2
0
 /**
  * Return the local filesystem path.
  *
  * @return string
  *   The local path.
  */
 protected function getLocalPath()
 {
     $path = $this->uri->getPath();
     $path = trim($path, '/');
     return $path;
 }