public function testRotationY() { $object = new View3D(); $value = rand(-90, 90); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\View3D', $object->setRotationY()); $this->assertEquals(0, $object->getRotationY()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\View3D', $object->setRotationY($value)); $this->assertEquals($value, $object->getRotationY()); }
/** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5(parent::getHashCode() . $this->title->getHashCode() . $this->legend->getHashCode() . $this->plotArea->getHashCode() . $this->view3D->getHashCode() . ($this->includeSpreadsheet ? 1 : 0) . __CLASS__); }