Improve unit test

This commit is contained in:
Manunchik 2019-10-23 13:44:47 +05:00 committed by GitHub
parent b8346af548
commit cb7ffd0ac2
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(1, $phpWord->getSection(1)->countElements());
}
/**
* @covers \PhpOffice\PhpWord\PhpWord::getSettings
*/
public function testGetSettings()
{
$phpWord = new PhpWord();
$this->assertInstanceOf('PhpOffice\\PhpWord\\Metadata\\Settings', $phpWord->getSettings());
}
}