cvs: pear /PHPUnit2 package.xml /PHPUnit2/Framework TestCase.php
| From: | Sebastian Bergmann | Date: | Sun, 24 Oct 2004 19:50:05 +0000 |
| Subject: | cvs: pear /PHPUnit2 package.xml /PHPUnit2/Framework TestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25180@lists.php.net to get a copy of this message | ||
sebastian Sun Oct 24 15:50:05 2004 EDT
Modified files:
/pear/PHPUnit2 package.xml
/pear/PHPUnit2/Framework TestCase.php
Log:
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.62&r2=1.63&ty=u
Index: pear/PHPUnit2/package.xml
diff -u pear/PHPUnit2/package.xml:1.62 pear/PHPUnit2/package.xml:1.63
--- pear/PHPUnit2/package.xml:1.62 Fri Oct 8 02:19:17 2004
+++ pear/PHPUnit2/package.xml Sun Oct 24 15:50:03 2004
@@ -177,10 +177,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>
</release>
http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/TestCase.php?r1=1.16&r2=1.17&ty=u
Index: pear/PHPUnit2/Framework/TestCase.php
diff -u pear/PHPUnit2/Framework/TestCase.php:1.16 pear/PHPUnit2/Framework/TestCase.php:1.17
--- pear/PHPUnit2/Framework/TestCase.php:1.16 Fri Oct 8 02:19:24 2004
+++ pear/PHPUnit2/Framework/TestCase.php Sun Oct 24 15:50:05 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: TestCase.php,v 1.16 2004/10/08 06:19:24 sebastian Exp $
+// $Id: TestCase.php,v 1.17 2004/10/24 19:50:05 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();
}
}