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()); }
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()); }