[Phpmyadmin-devel] PHPUnit and our error handler

Rouslan Placella rouslan at placella.com
Mon Jan 14 19:09:13 CET 2013


On 01/14/2013 06:00 PM, Marc Delisle wrote:
> Hi,
> I want to modify a test to fit with a modification I am working on. In
> this modification, the tested function uses $GLOBALS['error_handler'].
> How can I define this global inside my test?

How about the below code? Totally untested, off the top of my head, but 
should work....

protected function setUp()
{
     $GLOBALS['error_handler'] = new PMA_Error_Handler();
}

Bye,
Rouslan




More information about the Developers mailing list