Failing test #267
This commit is contained in:
parent
a8d96aaa39
commit
bc40ec1830
@ -91,7 +91,7 @@ class StyleHelper extends AbstractStyleHelper
|
|||||||
{
|
{
|
||||||
$styleId = $style->getId();
|
$styleId = $style->getId();
|
||||||
|
|
||||||
if (true === $style->shouldApplyBorder()) {
|
if ($style->shouldApplyBorder()) {
|
||||||
|
|
||||||
$border = $style->getBorder();
|
$border = $style->getBorder();
|
||||||
$serializedBorder = serialize($border);
|
$serializedBorder = serialize($border);
|
||||||
|
@ -380,11 +380,14 @@ class WriterWithStyleTest extends \PHPUnit_Framework_TestCase
|
|||||||
$fontStyle = (new StyleBuilder())->setFontBold()->build();
|
$fontStyle = (new StyleBuilder())->setFontBold()->build();
|
||||||
$emptyStyle = (new StyleBuilder())->build();
|
$emptyStyle = (new StyleBuilder())->build();
|
||||||
|
|
||||||
|
$borderRightFontBoldStyle = $borderRightStyle->mergeWith($fontStyle);
|
||||||
|
|
||||||
$dataRows = [
|
$dataRows = [
|
||||||
['Border-Left'],
|
['Border-Left'],
|
||||||
['Empty'],
|
['Empty'],
|
||||||
['Font-Bold'],
|
['Font-Bold'],
|
||||||
['Border-Right']
|
['Border-Right'],
|
||||||
|
['Border-Right-Font-Bold'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$styles = [
|
$styles = [
|
||||||
@ -392,6 +395,7 @@ class WriterWithStyleTest extends \PHPUnit_Framework_TestCase
|
|||||||
$emptyStyle,
|
$emptyStyle,
|
||||||
$fontStyle,
|
$fontStyle,
|
||||||
$borderRightStyle,
|
$borderRightStyle,
|
||||||
|
$borderRightFontBoldStyle
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->writeToXLSXFileWithMultipleStyles($dataRows, $fileName, $styles);
|
$this->writeToXLSXFileWithMultipleStyles($dataRows, $fileName, $styles);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user