public function testGroup() { $oPhpPowerPoint = new PhpPowerpoint(); $oSlide = $oPhpPowerPoint->getActiveSlide(); $oGroup = $oSlide->createGroup(); $oDrawing = new Drawing(); $this->assertInternalType('array', $oDrawing->allDrawings($oPhpPowerPoint)); $this->assertEmpty($oDrawing->allDrawings($oPhpPowerPoint)); $oGroup->createDrawingShape(); $oGroup->createDrawingShape(); $oGroup->createDrawingShape(); $this->assertInternalType('array', $oDrawing->allDrawings($oPhpPowerPoint)); $this->assertCount(3, $oDrawing->allDrawings($oPhpPowerPoint)); }
/** * @expectedException \Exception * @expectedExceptionMessage No parent \PhpOffice\PhpPowerpoint\Writer\WriterInterface assigned. */ public function testParentException() { $oDrawing = new Drawing(); $oDrawing->getParentWriter(); }