PhpOffice\PhpPresentation\Tests\Shape\Chart\Type\AreaTest::testData PHP Method

testData() public method

public testData ( )
    public function testData()
    {
        $object = new Area();
        $this->assertInternalType('array', $object->getSeries());
        $this->assertEmpty($object->getSeries());
        $array = array(new Series(), new Series());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Type\\Area', $object->setSeries());
        $this->assertEmpty($object->getSeries());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Type\\Area', $object->setSeries($array));
        $this->assertCount(count($array), $object->getSeries());
    }