/**
* Set cookie expire time as DateTime object
*/
public function testSetCookiesWithDatetime()
{
$dateTime = new \DateTime('now');
$this->response->setCookie('foo', 'bar', $dateTime);
$this->assertEqualsArray(['foo', 'bar', $dateTime->format('U'), '/', null, false, false], $this->response->getCookie('foo'));
}