isCleared() публичный Метод

Whether this cookie is about to be cleared.
public isCleared ( ) : boolean
Результат boolean
Пример #1
0
 public function testRemove()
 {
     $this->cookieJar->set('testCookie', 'testValue');
     $this->cookie = $this->cookieJar->remove('testCookie');
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Cookie', $this->cookie);
     $this->assertTrue($this->cookie->isCleared());
 }
Пример #2
0
 public function testCookieIsCleared()
 {
     $cookie = new Cookie('foo', 'bar', time() - 20);
     $this->assertTrue($cookie->isCleared(), '->isCleared() returns true if the cookie has expired');
 }