cvs: php-src /pear/tests/PEAR_ErrorStack Error_Stack_TestCase_staticGetErrors.php

From: Date: Fri, 21 May 2004 03:33:51 +0000
Subject: cvs: php-src /pear/tests/PEAR_ErrorStack Error_Stack_TestCase_staticGetErrors.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-330@lists.php.net to get a copy of this message
cellog Thu May 20 23:33:51 2004 EDT Modified files: /php-src/pear/tests/PEAR_ErrorStack Error_Stack_TestCase_staticGetErrors.php Log: fix for BC break staticGetErrors adds the parameter $level between $purge and $merge, as it will be as common (or more common) as $purge. http://cvs.php.net/diff.php/php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php?r1=1.2&r2=1.3&ty=u Index: php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php diff -u php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php:1.2 php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php:1.3 --- php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php:1.2 Sun Mar 21 18:06:20 2004 +++ php-src/pear/tests/PEAR_ErrorStack/Error_Stack_TestCase_staticGetErrors.php Thu May 20 23:33:51 2004 @@ -3,7 +3,7 @@ /** * API Unit tests for PEAR_ErrorStack package. * - * @version $Id: Error_Stack_TestCase_staticGetErrors.php,v 1.2 2004/03/21 23:06:20 cellog Exp $ + * @version $Id: Error_Stack_TestCase_staticGetErrors.php,v 1.3 2004/05/21 03:33:51 cellog Exp $ * @author Laurent Laville <pear@laurent-laville.org> portions from HTML_CSS * @author Greg Beaver * @package PEAR_ErrorStack @@ -142,7 +142,7 @@ $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 @@ 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']);

« previous php.pear.core (#330) next »