Пример #1
0
 /**
  * Test delete cookie by name and custom props
  */
 public function testDeleteCookieByNameAndCustomProps()
 {
     $r = new \Slim\Http\Response();
     $r->setCookie('foo', 'bar');
     $r->setCookie('abc', '123');
     $r->deleteCookie('foo', array('secure' => true, 'httponly' => true));
     $this->assertEquals(1, preg_match("@abc=123\nfoo=; expires=.*; secure; HttpOnly@", $r['Set-Cookie']));
 }