public function testCannotSetInvalidStatusCode($code) { $this->setExpectedException('InvalidArgumentException'); $response = $this->response->withStatus($code); }