Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #15019: addCluster using attributes twice
3
--FILE--
4
<?php
5
 
6
/**
7
 * Bug 15019: "addCluster using attributes twice"
8
 *
9
 * @category Image
10
 * @package  Image_GraphViz
11
 * @author   Philippe Jausions <jausions@php.net>
12
 * @link     http://pear.php.net/bugs/bug.php?id=15019
13
 */
14
require_once 'Image/GraphViz.php';
15
 
16
$graph = new Image_GraphViz(true, '', 'Bug', true);
17
$graph->addCluster('cluster_0', 'Cluster',
18
    array('fontcolor' => 'black', 'style' => 'filled' ));
19
$graph->addNode( 'Node', '', 'cluster_0');
20
echo $graph->parse();
21
 
22
?>
23
--EXPECT--
24
strict digraph Bug {
25
    subgraph cluster_0 {
26
        graph [ fontcolor=black,style=filled,label=Cluster ];
27
        "Node" [ 0="" ];
28
    }
29
}