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