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

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

public testAddHBarGraph ( )
    public function testAddHBarGraph()
    {
        $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)->createHBarGraph($data, $x, $y)->output();
    }