/** * @expectedException \InvalidArgumentException */ public function testSetCookieWithWrongDateNameThrowException() { $this->response->setCookie('foo', 'bar', 'the day before sunday'); }