Merge pull request #1743 from Manunchik/Manunchik-patch-3
Improve unit test
This commit is contained in:
commit
777b48f184
|
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue