cvs: pear(PHPUNIT_2_1) /PHPUnit2 package.xml /PHPUnit2/Framework TestCase.php
| From: | Sebastian Bergmann | Date: | Sun, 24 Oct 2004 19:50:26 +0000 |
| Subject: | cvs: pear(PHPUNIT_2_1) /PHPUnit2 package.xml /PHPUnit2/Framework TestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25181@lists.php.net to get a copy of this message | ||
sebastian Sun Oct 24 15:50:26 2004 EDT
Modified files: (Branch: PHPUNIT_2_1)
/pear/PHPUnit2 package.xml
/pear/PHPUnit2/Framework TestCase.php
Log:
MFH: Change the order of the xdebug_get_code_coverage() and xdebug_stop_code_coverage() calls.
http://cvs.php.net/diff.php/pear/PHPUnit2/package.xml?r1=1.50.2.7&r2=1.50.2.8&ty=u
Index: pear/PHPUnit2/package.xml
diff -u pear/PHPUnit2/package.xml:1.50.2.7 pear/PHPUnit2/package.xml:1.50.2.8
--- pear/PHPUnit2/package.xml:1.50.2.7 Tue Oct 5 08:02:55 2004
+++ pear/PHPUnit2/package.xml Sun Oct 24 15:50:25 2004
@@ -15,10 +15,12 @@
<release>
<version>2.1.2</version>
<state>stable</state>
- <date>2004-10-DD</date>
+ <date>2004-10-24</date>
<notes>
<![CDATA[
* Fixed bug #2460 (assertContains should return message on line 2).
+
+* Changed the order of the xdebug_get_code_coverage() and xdebug_stop_code_coverage() calls in
PHPUnit2_Framework_TestCase::runTest() to be compatible with Xdebug 2.0.0b2.
]]>
</notes>
<filelist>
http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/TestCase.php?r1=1.14.2.1&r2=1.14.2.2&ty=u
Index: pear/PHPUnit2/Framework/TestCase.php
diff -u pear/PHPUnit2/Framework/TestCase.php:1.14.2.1 pear/PHPUnit2/Framework/TestCase.php:1.14.2.2
--- pear/PHPUnit2/Framework/TestCase.php:1.14.2.1 Fri Oct 1 02:11:53 2004
+++ pear/PHPUnit2/Framework/TestCase.php Sun Oct 24 15:50:25 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: TestCase.php,v 1.14.2.1 2004/10/01 06:11:53 sebastian Exp $
+// $Id: TestCase.php,v 1.14.2.2 2004/10/24 19:50:25 sebastian Exp $
//
require_once 'PHPUnit2/Framework/Assert.php';
@@ -254,11 +254,11 @@
$method->invoke($this);
if (extension_loaded('xdebug')) {
- xdebug_stop_code_coverage();
-
$this->codeCoverageInformation = PHPUnit2_Util_Filter::getFilteredCodeCoverage(
xdebug_get_code_coverage()
);
+
+ xdebug_stop_code_coverage();
}
}