コード例 #1
0
ファイル: ResponseTest.php プロジェクト: riso/owncloud-core
 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);
 }