Assert Cookie data is *not* set in headers.
The value passed to `expected` is an array of the cookie data, with at least the key and value expected, but can support any of the following keys: - `key`: the expected key - `value`: the expected value - `path`: optionally specify a path - `name`: optionally specify the cookie name - `expires`: optionally assert a specific expire time

Parameters

  • array $expected
  • array $headers When empty, value of `headers_list()` is used.

Returns

boolean

Source

						public function assertNoCookie($expected, $headers = null) {
		$matched = $this->_cookieMatch($expected, $headers);
		if ($matched['match']) {
			$message = sprintf('%s - Cookie found in headers.', $matched['pattern']);
			$this->assert(false, $message, compact('expected', 'result'));
			return false;
		}
		return $this->assert(true, '%s');
	}