コード例 #1
0
ファイル: S3UrlTest.php プロジェクト: vuhoanglinh2002/drupal
 /**
  * @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;
 }