public function seeCookie($name, $value = null)
{
$cookie = $this->response->cookies->get($name);
$this->phpunit->assertTrue((bool) $cookie, "Cookie [{$cookie}] not present on response.");
if ($cookie && !is_null($value)) {
$this->phpunit->assertEquals($cookie->value, $value, "Cookie [{$name}] was found, but value [{$cookie->value}] does not match [{$value}].");
}
return $this;
}