cvs: pear /PHPUnit2/Util/Log GraphViz.php
| From: | Sebastian Bergmann | Date: | Tue, 28 Feb 2006 20:27:55 +0000 |
| Subject: | cvs: pear /PHPUnit2/Util/Log GraphViz.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38750@lists.php.net to get a copy of this message | ||
sebastian Tue Feb 28 20:27:55 2006 UTC
Modified files:
/pear/PHPUnit2/Util/Log GraphViz.php
Log:
Add URL for imagemap usage.
http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/Util/Log/GraphViz.php?r1=1.8&r2=1.9&diff_format=u
Index: pear/PHPUnit2/Util/Log/GraphViz.php
diff -u pear/PHPUnit2/Util/Log/GraphViz.php:1.8 pear/PHPUnit2/Util/Log/GraphViz.php:1.9
--- pear/PHPUnit2/Util/Log/GraphViz.php:1.8 Mon Feb 27 05:47:03 2006
+++ pear/PHPUnit2/Util/Log/GraphViz.php Tue Feb 28 20:27:55 2006
@@ -41,7 +41,7 @@
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
- * @version CVS: $Id: GraphViz.php,v 1.8 2006/02/27 05:47:03 sebastian Exp $
+ * @version CVS: $Id: GraphViz.php,v 1.9 2006/02/28 20:27:55 sebastian Exp $
* @link http://pear.php.net/package/PHPUnit2
* @since File available since Release 3.0.0
*/
@@ -127,9 +127,9 @@
$this->graph = new Image_GraphViz(
TRUE,
array(
- 'overlap' => 'scale',
- 'splines' => 'true',
- 'sep' => '.1',
+ 'overlap' => 'scale',
+ 'splines' => 'true',
+ 'sep' => '.1',
'fontsize' => '8'
)
);
@@ -299,19 +299,20 @@
*/
private function addTestNode(PHPUnit2_Framework_Test $test, $color)
{
- $name = PHPUnit2_Util_Test::describe($test);
+ $name = PHPUnit2_Util_Test::describe($test, FALSE);
$this->graph->addNode(
- $name,
+ $name[1],
array(
- 'color' => $color
+ 'color' => $color,
+ 'URL' => $name[0] . '.htm'
),
$this->testSuites[$this->testSuiteLevel]
);
$this->graph->addEdge(
array(
- $this->testSuites[$this->testSuiteLevel] => $name
+ $this->testSuites[$this->testSuiteLevel] => $name[1]
)
);
}