public function testSetCodeException() { $this->setExpectedException('Pop\\Http\\Exception'); $r = new Response(200, array('Content-Type' => 'text/plain')); $r->setCode(601); }