Ejemplo n.º 1
0
 function testInvalidateCookie()
 {
     $this->childResponse->addCookie('foo', 'bar');
     $this->childResponse->invalidateCookie('foo');
     $expected = array('foo' => array('value' => 'expired', 'expireDate' => new \DateTime('1971-01-01')));
     $cookies = $this->childResponse->getCookies();
     $this->assertEquals($expected, $cookies);
 }