芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp80/includes/test/Image_GraphViz/tests/test5.phpt
--TEST-- Unit test for Graph with polygonal shapes --FILE-- */ require_once 'Image/GraphViz.php'; $graph = new Image_GraphViz(true, null, 'G', false); $graph->addNode('a', array('shape' => 'polygon', 'sides' => 5, 'peripheries' => 3, 'color' => 'lightblue', 'style' => 'filled')); $graph->addNode('c', array('shape' => 'polygon', 'sides' => 4, 'skew' => .4, 'label' => 'hello world')); $graph->addNode('d', array('shape' => 'invtriangle')); $graph->addNode('e', array('shape' => 'polygon', 'sides' => 4, 'distortion' => .7)); $graph->addEdge(array('a' => 'b')); $graph->addEdge(array('b' => 'c')); $graph->addEdge(array('b' => 'd')); echo $graph->parse(); ?> --EXPECT-- digraph G { a [ shape=polygon,sides=5,peripheries=3,color=lightblue,style=filled ]; c [ shape=polygon,sides=4,skew=0.4,label="hello world" ]; d [ shape=invtriangle ]; e [ shape=polygon,sides=4,distortion=0.7 ]; a -> b; b -> c; b -> d; }