Skip to content

Commit 214df1a

Browse files
committed
fix unit test
1 parent 48ee2eb commit 214df1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PhpWord/Writer/Word2007/Element/ChartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testChartElements()
113113
for ($idxp1 = 1; $idxp1 < $numColor; ++$idxp1) {
114114
$idx = $idxp1; // stacked bar chart is shifted
115115
$element = $path . "/c:ser/c:dPt[$idxp1]/c:spPr/a:solidFill/a:srgbClr";
116-
self::assertEquals($colorArray[$idx], $doc->getElementAttribute($element, 'val'), "bar chart idx=$idx");
116+
self::assertEquals($colorArray[$idx-1], $doc->getElementAttribute($element, 'val'), "bar chart idx=$idx");
117117
}
118118
}
119119

0 commit comments

Comments
 (0)