コード例 #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 testContentLocationToStringReturnsHeaderFormattedString()
 {
     $contentLocationHeader = new ContentLocation();
     $contentLocationHeader->setUri('http://www.example.com/path?query');
     $this->assertEquals('Content-Location: http://www.example.com/path?query', $contentLocationHeader->toString());
 }