Skip to content

Commit cea15f3

Browse files
committed
Use page width and height default constants in tests
1 parent cf5625b commit cea15f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PhpWord/Tests/Style/SectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testPageWidth()
105105
// Section Settings
106106
$oSettings = new Section();
107107

108-
$this->assertEquals(11906, $oSettings->getPageSizeW());
108+
$this->assertEquals(Section::DEFAULT_WIDTH, $oSettings->getPageSizeW());
109109
$iVal = rand(1, 1000);
110110
$oSettings->setSettingValue('pageSizeW', $iVal);
111111
$this->assertEquals($iVal, $oSettings->getPageSizeW());
@@ -119,7 +119,7 @@ public function testPageHeight()
119119
// Section Settings
120120
$oSettings = new Section();
121121

122-
$this->assertEquals(16838, $oSettings->getPageSizeH());
122+
$this->assertEquals(Section::DEFAULT_HEIGHT, $oSettings->getPageSizeH());
123123
$iVal = rand(1, 1000);
124124
$oSettings->setSettingValue('pageSizeH', $iVal);
125125
$this->assertEquals($iVal, $oSettings->getPageSizeH());

0 commit comments

Comments
 (0)