public function testSetEncodingThrowsExceptionOnInvalidParameter() { $writer = new Writer\Feed(); try { $writer->setEncoding(''); $this->fail(); } catch (Writer\Exception $e) { } }