cookies.php
protected function isMatch($cookie, $host, $path, $name)
    {
        if ($cookie->getName() != $name) {
            return false;
        }
        if ($host && $cookie->getHost() && ! $cookie->isValidHost($host)) {
            return false;
        }
        if (! $cookie->isValidPath($path)) {
            return false;
        }

        return true;
    }
protected function isMatch($cookie, $host, $path, $name)
    {
        if ($cookie->getName() != $name) {
            return false;
        }
        if ($host && $cookie->getHost() && ! $cookie->isValidHost($host)) {
            return false;
        }
        if (! $cookie->isValidPath($path)) {
            return false;
        }

        return true;
    }
Tests cookie for matching against search criteria.

@param SimpleTest $cookie Cookie to test.
@param string     $host   Host must match.
@param string     $path   Cookie path must be shorter than this path.
@param string     $name   Name must match.

@return bool True if matched.