
14 Jan
2013
14 Jan
'13
7:09 p.m.
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