$this->
assertFalse($this->response->
hasCookie($key), "Cookie named '{
$key}' should not be set."
);
} /**
* Asserts that a cookie exists and has an expired time.
*
* @throws Exception
*/
public function assertCookieExpired(string
$key, string
$prefix = ''
) { $this->
assertTrue($this->response->
hasCookie($key, null,
$prefix));
$this->
assertGreaterThan(Time::
now()->
getTimestamp(),
$this->response->
getCookie($key,
$prefix)->
getExpiresTimestamp());
} // --------------------------------------------------------------------
// JSON
// --------------------------------------------------------------------
/**
* Returns the response's body as JSON
*
* @return false|string
*/