assertNull($object->getParent()); $oPhpPresentation = new PhpPresentation(); $oSlide = $oPhpPresentation->createSlide(); $oSlide->setNote($object); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide', $object->getParent()); } public function testExtent() { $object = new Note(); $this->assertNotNull($object->getExtentX()); $object = new Note(); $this->assertNotNull($object->getExtentY()); } public function testHashCode() { $object = new Note(); $this->assertInternalType('string', $object->getHashCode()); } public function testOffset() { $object = new Note(); $this->assertNotNull($object->getOffsetX()); $object = new Note(); $this->assertNotNull($object->getOffsetY()); } public function testShape() { $object = new Note(); $this->assertEquals(0, $object->getShapeCollection()->count()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->createRichTextShape()); $this->assertEquals(1, $object->getShapeCollection()->count()); $oRichText = new RichText(); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->addShape($oRichText)); $this->assertEquals(2, $object->getShapeCollection()->count()); } /** * Test get/set hash index */ public function testSetGetHashIndex() { $object = new Note(); $value = rand(1, 100); $this->assertNull($object->getHashIndex()); $object->setHashIndex($value); $this->assertEquals($value, $object->getHashIndex()); } }