[CHANGED] Added annotations to StyleTest and performed minor refactoring.
This commit is contained in:
parent
c11df2e426
commit
d35db836dc
|
|
@ -64,7 +64,7 @@ class StyleTest extends \PHPUnit_Framework_TestCase
|
|||
Style::addTableStyle('Table', $table);
|
||||
Style::setDefaultParagraphStyle($paragraph);
|
||||
|
||||
$this->assertEquals(count($styles), Style::countStyles());
|
||||
$this->assertCount(count($styles), Style::getStyles());
|
||||
foreach ($styles as $name => $style) {
|
||||
$this->assertInstanceOf("PhpOffice\\PhpWord\\Style\\{$style}", Style::getStyle($name));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue