コード例 #1
0
 public function testContentLocationToStringReturnsHeaderFormattedString()
 {
     $this->markTestIncomplete('ContentLocation needs to be completed');
     $contentLocationHeader = new ContentLocation();
     // @todo set some values, then test output
     $this->assertEmpty('Content-Location: xxx', $contentLocationHeader->toString());
 }
コード例 #2
0
ファイル: ContentLocationTest.php プロジェクト: haoyanfei/zf2
 public function testContentLocationCanSetAndAccessRelativeUri()
 {
     $contentLocationHeader = ContentLocation::fromString('Content-Location: /path/to');
     $uri = $contentLocationHeader->uri();
     $this->assertInstanceOf('Zend\\Uri\\UriInterface', $uri);
     $this->assertFalse($uri->isAbsolute());
     $this->assertEquals('/path/to', $contentLocationHeader->getUri());
 }