public function testPerspective() { $object = new View3D(); $value = rand(0, 100); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\View3D', $object->setPerspective()); $this->assertEquals(30, $object->getPerspective()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\View3D', $object->setPerspective($value)); $this->assertEquals($value, $object->getPerspective()); }