Пример #1
0
 public function testVisible()
 {
     $object = new Legend();
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setVisible());
     $this->assertTrue($object->isVisible());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setVisible(true));
     $this->assertTrue($object->isVisible());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setVisible(false));
     $this->assertFalse($object->isVisible());
 }