The following looks wrong to me...
From /Zend/Test/PHPUnit/ControllerTestCase.php (1.6.2)
lines 233-248
/**
* Assert against DOM selection
*
* @param string $path CSS selector path
* @param string $message
* @return void
*/
public function assertQuery($path, $message = '')
{
require_once 'Zend/Test/PHPUnit/Constraint/DomQuery.php';
$constraint = new Zend_Test_PHPUnit_Constraint_DomQuery($path);
*** $content = $this->response-
>outputBody(); *****
if (!$constraint->evaluate($content, __FUNCTION__)) {
$constraint->fail($path, $message);
}
}
In the line with the stars, is the response member not private? i.e.
named _response ?
(I'm happy to log the bug if so.)
Regards,
Carlton
没有评论:
发表评论