Esempio n. 1
0
 public function testIncludeSpreadsheet()
 {
     $object = new Chart();
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart', $object->setIncludeSpreadsheet());
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart', $object->setIncludeSpreadsheet(false));
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart', $object->setIncludeSpreadsheet(true));
     $this->assertTrue($object->hasIncludedSpreadsheet());
 }