hasCookie() public static method

Determine if a cookie is set on the request.
public static hasCookie ( string $key ) : boolean
$key string
return boolean
 public function testHasCookie()
 {
     $this->assertThat($this->object->hasCookie('undefined cookie'), $this->equalTo(false));
     $this->assertThat($this->object->hasCookie('user'), $this->equalTo(true));
 }