Skip to content

Commit 777b48f

Browse files
authored
Merge pull request #1743 from Manunchik/Manunchik-patch-3
Improve unit test
2 parents 3583cfe + cb7ffd0 commit 777b48f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PhpWord/PhpWordTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,13 @@ public function testSortSections()
225225
$this->assertEquals(2, $phpWord->getSection(0)->countElements());
226226
$this->assertEquals(1, $phpWord->getSection(1)->countElements());
227227
}
228+
229+
/**
230+
* @covers \PhpOffice\PhpWord\PhpWord::getSettings
231+
*/
232+
public function testGetSettings()
233+
{
234+
$phpWord = new PhpWord();
235+
$this->assertInstanceOf('PhpOffice\\PhpWord\\Metadata\\Settings', $phpWord->getSettings());
236+
}
228237
}

0 commit comments

Comments
 (0)