cvs: pear(PHPUNIT_2_2) /PHPUnit2 package.xml /PHPUnit2/Framework TestResult.php

From: Date: Thu, 03 Mar 2005 06:32:18 +0000
Subject: cvs: pear(PHPUNIT_2_2) /PHPUnit2 package.xml /PHPUnit2/Framework TestResult.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30012@lists.php.net to get a copy of this message
sebastian Thu Mar 3 01:32:18 2005 EDT Modified files: (Branch: PHPUNIT_2_2) /pear/PHPUnit2 package.xml /pear/PHPUnit2/Framework TestResult.php Log: Limit errorHandler() to E_ERROR and E_USER_ERROR events. Fix bug #3676. Prepare release of PHPUnit2-2.2.0beta6. http://cvs.php.net/diff.php/pear/PHPUnit2/package.xml?r1=1.77.2.13&r2=1.77.2.14&ty=u Index: pear/PHPUnit2/package.xml diff -u pear/PHPUnit2/package.xml:1.77.2.13 pear/PHPUnit2/package.xml:1.77.2.14 --- pear/PHPUnit2/package.xml:1.77.2.13 Fri Feb 25 15:08:42 2005 +++ pear/PHPUnit2/package.xml Thu Mar 3 01:32:17 2005 @@ -13,9 +13,9 @@ </maintainers> <license>PHP License</license> <release> - <version>2.2.0beta5</version> + <version>2.2.0beta6</version> <state>beta</state> - <date>2005-02-09</date> + <date>2005-03-03</date> <notes> <![CDATA[ + Added PHPUnit2_Framework_Assert::assertNotType() to complement PHPUnit2_Framework_Assert::assertType(). @@ -32,7 +32,7 @@ + Added a Templating API to the test class skeleton generator to customize the generated source. -* PHP errors (that can be handled by a custom error handler) are now counted as errors. +* PHP errors (E_ERROR and E_USER_ERROR events) are now counted as errors. * PHPUnit2_Framework_Assert::assertContains() and PHPUnit2_Framework_Assert::assertNotContains() now accept an object that offers the Iterator interface for the $haystack parameter. http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/TestResult.php?r1=1.16.2.3&r2=1.16.2.4&ty=u Index: pear/PHPUnit2/Framework/TestResult.php diff -u pear/PHPUnit2/Framework/TestResult.php:1.16.2.3 pear/PHPUnit2/Framework/TestResult.php:1.16.2.4 --- pear/PHPUnit2/Framework/TestResult.php:1.16.2.3 Fri Feb 4 05:01:56 2005 +++ pear/PHPUnit2/Framework/TestResult.php Thu Mar 3 01:32:17 2005 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: TestResult.php,v 1.16.2.3 2005/02/04 10:01:56 sebastian Exp $ +// $Id: TestResult.php,v 1.16.2.4 2005/03/03 06:32:17 sebastian Exp $ // require_once 'PHPUnit2/Framework/AssertionFailedError.php'; @@ -456,7 +456,7 @@ * @since 2.2.0 */ public function errorHandler($errno, $errstr, $errfile, $errline) { - if ($errno != E_NOTICE && $errno != E_STRICT) { + if ($errno == E_ERROR || $errno == E_USER_ERROR) { $trace = debug_backtrace(); array_shift($trace);

« previous php.pear.cvs (#30012) next »