PopTest\Graph\GraphTest::testAddVBarGraph PHP Метод

testAddVBarGraph() публичный Метод

public testAddVBarGraph ( )
    public function testAddVBarGraph()
    {
        $x = array('1995', '2000', '2005', '2010', '2015');
        $y = array('0M', '50M', '100M', '150M', '200M');
        $data = array(array(5, new Rgb(200, 15, 15)), array(25, new Rgb(80, 5, 10)), array(100, new Rgb(80, 180, 100)), array(76, new Rgb(50, 125, 210)), array(175, new Rgb(80, 180, 10)));
        $this->setExpectedException('Pop\\Http\\Exception');
        $g = new Graph($this->pdfOptions);
        $g->addFont('Arial')->setFontColor(new Rgb(128, 128, 128))->setFillColor(new Rgb(10, 125, 210))->showY(true)->showText(true)->createVBarGraph($data, $x, $y)->output();
    }