Skip to content

Commit

Permalink
PHPOffice#240 : PowerPoint2007 Reader : Support of Table (Unit Tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Mar 5, 2017
1 parent fdd9cd8 commit 89fbb76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/PhpPresentation/Reader/PowerPoint2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@ protected function loadShapeRichText(XMLReader $document, \DOMElement $node, Abs
* @param Cell|RichText $oShape
* @throws \Exception
*/
protected function loadParagraph(XMLReader $document, \DOMElement $oElement, $oShape) {
protected function loadParagraph(XMLReader $document, \DOMElement $oElement, $oShape)
{
// Core
$oParagraph = $oShape->createParagraph();
$oParagraph->setRichTextElements(array());
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpPresentation/Tests/Shape/Table/CellTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testActiveParagraph()
$value = rand(0, 1);
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->getParagraph($value));

$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->setParagraphs(0));
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->setParagraphs(array()));
$this->assertCount(0, $object->getParagraphs());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->createParagraph());
$this->assertCount(1, $object->getParagraphs());
Expand Down

0 comments on commit 89fbb76

Please sign in to comment.