fix unit test

This commit is contained in:
dbarzin 2021-02-06 12:57:16 +01:00
parent 48ee2eb78a
commit 214df1a1cb
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class ChartTest extends \PHPUnit\Framework\TestCase
for ($idxp1 = 1; $idxp1 < $numColor; ++$idxp1) { for ($idxp1 = 1; $idxp1 < $numColor; ++$idxp1) {
$idx = $idxp1; // stacked bar chart is shifted $idx = $idxp1; // stacked bar chart is shifted
$element = $path . "/c:ser/c:dPt[$idxp1]/c:spPr/a:solidFill/a:srgbClr"; $element = $path . "/c:ser/c:dPt[$idxp1]/c:spPr/a:solidFill/a:srgbClr";
self::assertEquals($colorArray[$idx], $doc->getElementAttribute($element, 'val'), "bar chart idx=$idx"); self::assertEquals($colorArray[$idx-1], $doc->getElementAttribute($element, 'val'), "bar chart idx=$idx");
} }
} }