2008年11月4日星期二

Re: [fw-mvc] Zend Test Bug ???

Okay, original query resolved __get() provides for easy access to the
private _response member.

On 4 Nov 2008, at 08:32, Carlton Gibson wrote:

> Hi all,
>
> 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

没有评论: