|
From: Christoph B. <ber...@ne...> - 2011-12-13 03:58:30
|
Hi -
I found an failing case for the WebTestCase get method.
Class Odd401Test Extends WebTestCase
function test401()
{
$this->get("http://domain.com/pageRequiringHTTPAuth\r")
}
generates this "fail" message:
"Could not split headers from content"
Note also that the FAIL doesn't point to any particular line number in the
php test file.
Two things seem to be necessary:
1. the url requires HTTP authentication
2. the url ends in a trailing "\r" (carriage return)
I'm running 1.1alpha3 and finding odd behavior. In my case, trimming the
URL solved the problem, but it took a bit of forensics to get there.
Chris Berendes
|