Skip to content

Commit 89fbb76

Browse files
committed
#240 : PowerPoint2007 Reader : Support of Table (Unit Tests)
1 parent fdd9cd8 commit 89fbb76

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/PhpPresentation/Reader/PowerPoint2007.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,8 @@ protected function loadShapeRichText(XMLReader $document, \DOMElement $node, Abs
826826
* @param Cell|RichText $oShape
827827
* @throws \Exception
828828
*/
829-
protected function loadParagraph(XMLReader $document, \DOMElement $oElement, $oShape) {
829+
protected function loadParagraph(XMLReader $document, \DOMElement $oElement, $oShape)
830+
{
830831
// Core
831832
$oParagraph = $oShape->createParagraph();
832833
$oParagraph->setRichTextElements(array());

tests/PhpPresentation/Tests/Shape/Table/CellTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testActiveParagraph()
5656
$value = rand(0, 1);
5757
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->getParagraph($value));
5858

59-
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->setParagraphs(0));
59+
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->setParagraphs(array()));
6060
$this->assertCount(0, $object->getParagraphs());
6161
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->createParagraph());
6262
$this->assertCount(1, $object->getParagraphs());

0 commit comments

Comments
 (0)