Skip to content

Commit

Permalink
#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 af4d7a5 commit 2471b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/PhpPresentation/Tests/Shape/Table/CellTest.php
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', $object->setParagraphs(array()));
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Table\\Cell', $object->setParagraphs(array()));
$this->assertCount(0, $object->getParagraphs());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Paragraph', $object->createParagraph());
$this->assertCount(1, $object->getParagraphs());
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpPresentation/Tests/Shape/TableTest.php
Expand Up @@ -38,9 +38,9 @@ public function testNumColums()
$value = rand(1, 100);
$object = new Table();

$this->assertNull(1, $object->getNumColumn());
$this->assertEquals(1, $object->getNumColumn());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Table\\Row', $object->setNumColumn($value));
$this->assertCount($value, $object->getRows());
$this->assertEquals($value, $object->getNumColumn());
}

public function testRows()
Expand Down

0 comments on commit 2471b1f

Please sign in to comment.