From 981948641ca716aaa43657068d64b6e374c6063f Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 21 May 2004 03:33:51 +0000 Subject: [PATCH] fix for BC break staticGetErrors adds the parameter $level between $purge and $merge, as it will be as common (or more common) as $purge. --- .../PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php b/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php index 7c84fe5fda..a7a3e0b84b 100644 --- a/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php +++ b/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php @@ -142,7 +142,7 @@ class Error_Stack_TestCase_staticGetErrors extends PHPUnit_TestCase $this->stack->push(2, 'warning'); for($i=0;$i<10000;$i++); PEAR_ErrorStack::staticPush('fronk', 3, 'foo'); - $ret = PEAR_ErrorStack::staticGetErrors(true, true); + $ret = PEAR_ErrorStack::staticGetErrors(true, false, true); for ($i= 0; $i < 3; $i++) { unset($ret[$i]['time']); unset($ret[$i]['context']); @@ -193,7 +193,7 @@ class Error_Stack_TestCase_staticGetErrors extends PHPUnit_TestCase for($i=0;$i<10000;$i++); PEAR_ErrorStack::staticPush('fronk', 3, 'foo'); $this->wasCalled = false; - $ret = PEAR_ErrorStack::staticGetErrors(true, true, array(&$this, '_sortErrorsRev')); + $ret = PEAR_ErrorStack::staticGetErrors(true, false, true, array(&$this, '_sortErrorsRev')); $this->assertTrue($this->wasCalled, '_sortErrorsRev not called!'); for ($i= 0; $i < 3; $i++) { unset($ret[$i]['time']); -- 2.50.1