This commit is contained in:
Roman Syroeshko 2015-03-22 11:49:16 +04:00
parent f2cd42fecf
commit 0198aec0d1
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ class PreserveTextTest extends \PHPUnit_Framework_TestCase
{ {
$oPreserveText = new PreserveText( $oPreserveText = new PreserveText(
htmlspecialchars('text', ENT_COMPAT, 'UTF-8'), htmlspecialchars('text', ENT_COMPAT, 'UTF-8'),
array('align' => 'center'), null,
array('marginLeft' => 600, 'marginRight' => 600, 'marginTop' => 600, 'marginBottom' => 600) array('alignment' => 'center')
); );
$this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oPreserveText->getFontStyle()); $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oPreserveText->getFontStyle());
$this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Paragraph', $oPreserveText->getParagraphStyle()); $this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Paragraph', $oPreserveText->getParagraphStyle());