/** * @covers \Core\Response\Response::setContentLength * @expectedException \InvalidArgumentException * @expectedExceptionMessageRegExp /Length must be a valid Integer,/ */ public function testSetContentLengthWithString() { $response = new Response(); $response->setContentLength('123'); }