[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::addTableStyle('Table', $table);
|
||||||
Style::setDefaultParagraphStyle($paragraph);
|
Style::setDefaultParagraphStyle($paragraph);
|
||||||
|
|
||||||
$this->assertEquals(count($styles), Style::countStyles());
|
$this->assertCount(count($styles), Style::getStyles());
|
||||||
foreach ($styles as $name => $style) {
|
foreach ($styles as $name => $style) {
|
||||||
$this->assertInstanceOf("PhpOffice\\PhpWord\\Style\\{$style}", Style::getStyle($name));
|
$this->assertInstanceOf("PhpOffice\\PhpWord\\Style\\{$style}", Style::getStyle($name));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user