public function testSetContentType() { $type = 'application/pdf'; $model = new ViewModel(); $model->setContentType($type); $this->assertSame($type, $model->getContentType()); }