public function testContentType() { // Don't use the fixture, we want to test content // type in its raw state. $o = new Object('foo.txt'); $this->assertEquals('application/octet-stream', $o->contentType()); $o->setContentType('text/plain; charset=UTF-8'); $this->assertEquals('text/plain; charset=UTF-8', $o->contentType()); }