cakephp/docs — pull request #141 by leighmac (2011-11-22 09:33:23+00:00)
Title: Development Testing Section

Hello,

Got an error when following along with the complex testing example in the 2.0 docs.

$this->headers['Location'] is the hostname + path, but the example is using only the path. I added in the hostname.

I'd love it to work the way the manual says as the benefits of not having to add the hostname and or project directory would be great. Maybe a solution is to have an extra key LocationParts and you could access it from there.

Similar to what http://php.net/parse_url returns.

$this->headers['LocationParts']['path'] = /posts/index
$this->headers['LocationParts']['query']
$this->headers['LocationParts']['fragment']