public function testPosition() { $object = new Legend(); $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setPosition()); $this->assertEquals(Legend::POSITION_RIGHT, $object->getPosition()); $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setPosition(Legend::POSITION_BOTTOM)); $this->assertEquals(Legend::POSITION_BOTTOM, $object->getPosition()); }