]> granicus.if.org Git - php/commitdiff
fix for BC break
authorGreg Beaver <cellog@php.net>
Fri, 21 May 2004 03:33:51 +0000 (03:33 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 21 May 2004 03:33:51 +0000 (03:33 +0000)
staticGetErrors adds the parameter $level between $purge and $merge, as it will be as common (or more common) as $purge.

pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php

index 7c84fe5fda9a99213b28b1602e0306d93fd5751c..a7a3e0b84b88fec5a44f1a0d3d9c7fabf14aaa0c 100644 (file)
@@ -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']);