Пример #1
0
 public function testData()
 {
     $object = new Scatter();
     $this->assertInternalType('array', $object->getSeries());
     $this->assertEmpty($object->getSeries());
     $array = array(new Series(), new Series());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Type\\Scatter', $object->setSeries());
     $this->assertEmpty($object->getSeries());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Type\\Scatter', $object->setSeries($array));
     $this->assertCount(count($array), $object->getSeries());
 }