示例#1
0
 public function testContentTypeToStringReturnsHeaderFormattedString()
 {
     $this->markTestIncomplete('ContentType needs to be completed');
     $contentTypeHeader = new ContentType();
     // @todo set some values, then test output
     $this->assertEmpty('Content-Type: xxx', $contentTypeHeader->toString());
 }
示例#2
0
 public function testContentTypeToStringReturnsHeaderFormattedString()
 {
     $header = new ContentType();
     $header->setMediaType('application/atom+xml')->setCharset('ISO-8859-1');
     $this->assertEquals('Content-Type: application/atom+xml; charset=ISO-8859-1', $header->toString());
 }