Merge pull request #1743 from Manunchik/Manunchik-patch-3

Improve unit test
This commit is contained in:
troosan 2019-12-08 13:15:18 +01:00 committed by GitHub
commit 777b48f184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -225,4 +225,13 @@ class PhpWordTest extends \PHPUnit\Framework\TestCase
$this->assertEquals(2, $phpWord->getSection(0)->countElements()); $this->assertEquals(2, $phpWord->getSection(0)->countElements());
$this->assertEquals(1, $phpWord->getSection(1)->countElements()); $this->assertEquals(1, $phpWord->getSection(1)->countElements());
} }
/**
* @covers \PhpOffice\PhpWord\PhpWord::getSettings
*/
public function testGetSettings()
{
$phpWord = new PhpWord();
$this->assertInstanceOf('PhpOffice\\PhpWord\\Metadata\\Settings', $phpWord->getSettings());
}
} }