Symfony\Component\HttpFoundation\Cookie::isCleared PHP Method

isCleared() public method

Whether this cookie is about to be cleared.
public isCleared ( ) : boolean
return boolean
    public function isCleared()
    {
        return $this->expire < time();
    }

Usage Example

 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());
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Cookie::isCleared