PhpOffice\PhpPresentation\Tests\Shape\Chart\Type\Pie3DTest::testData PHP Метод

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

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