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

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

public testAddLineGraph ( )
    public function testAddLineGraph()
    {
        $x = array('1995', '2000', '2005', '2010', '2015');
        $y = array('0M', '50M', '100M', '150M', '200M');
        $data = array(array(1995, 0), array(1997, 35), array(1998, 25), array(2002, 100), array(2004, 84), array(2006, 98), array(2007, 76), array(2010, 122), array(2012, 175), array(2015, 162));
        $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)->createLineGraph($data, $x, $y)->output();
    }