function test_PieChart()
    {
        $piChart = new gPieChart();
        $piChart->setTitle("A Title");
        $piChart->addDataSet(array(112, 315, 66, 40));
        $piChart->setLegend(array("first", "second", "third", "fourth"));
        $piChart->setLabels(array("first", "second", "third", "fourth"));
        $piChart->setColors(array("ff3344", "11ff11", "22aacc", "3333aa"));
        $text = <<<END
newPieChart:
setTitle: A Title
addDataSet: 112,315,66,40
setLegend: first, second, third, fourth
setLabels: first, second, third, fourth
setColors: ff3344, 11ff11, 22aacc, 3333aa
END;
        $parser = new gChartPhpDSLParser();
        $parser->parse($text);
        $this->assertEqual($piChart->getUrl(), $parser->getUrl());
    }