Saturday, December 3, 2011

Re: CakePHP 2.0.3 out of the oven

for overcoming the above phpunit 3.6 output swallowing this might work
as an enhancement for the CakeTestCase class:

/**
* outputs debug information during a web tester (browser) test case
* since PHPUnit>=3.6 swallowes all output by default
* this is a convenience output handler since debug() or pr() have no
effect
* @param mixed $data
* @param bool $pre should a pre tag be enclosed around the output
* @return void
*/
public function out($data, $pre = true) {
if (empty($_SERVER['HTTP_HOST'])) {
# shell access: use the --debug modifier if you are using the CLI
interface
return;
}
if ($pre) {
$data = pre($data);
}
echo $data;
ob_flush();
}

is it worth a ticket?

On 17 Nov., 11:56, Andy Gale <a...@salgo.net> wrote:
> On Thu, Nov 17, 2011 at 10:16 AM, Davor Ilic <webfa...@gmail.com> wrote:
> > does any of you have this error message when you calling wrong controller or
> > action:
> > Fatal error: Call to a member function flash() on a non-object
> > in /srv/www/htdocs/web843/html/schaetzmal/lib/Cake/View/Layouts/default.ctp on
> > line 44
>
> You need to include the Session helper I'd imagine.
>
> --
> Andy Galehttp://andy-gale.comhttp://twitter.com/andygale

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: