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