File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed
tests/PhpSpreadsheetTests/Worksheet Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function testVariousSets(): void
96
96
97
97
$ result = $ columnFilter ->setJoin (Column::AUTOFILTER_COLUMN_JOIN_AND );
98
98
99
- $ result = $ columnFilter ->getJoin ();
99
+ $ result = $ result ->getJoin ();
100
100
self ::assertEquals (Column::AUTOFILTER_COLUMN_JOIN_AND , $ result );
101
101
}
102
102
@@ -174,10 +174,9 @@ public function testSetAttribute(): void
174
174
];
175
175
176
176
foreach ($ attributeSet as $ attributeName => $ attributeValue ) {
177
- // Setters return the instance to implement the fluent interface
178
- $ result = $ columnFilter ->setAttribute ($ attributeName , $ attributeValue );
177
+ $ columnFilter ->setAttribute ($ attributeName , $ attributeValue );
179
178
}
180
- self ::assertSame ($ attributeSet , $ result ->getAttributes ());
179
+ self ::assertSame ($ attributeSet , $ columnFilter ->getAttributes ());
181
180
}
182
181
183
182
public function testGetAttribute (): void
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ public function testVariousSets(): void
67
67
68
68
$ label = 'Total ' ;
69
69
$ result = $ column ->setTotalsRowLabel ($ label );
70
- self ::assertEquals ($ label , $ column ->getTotalsRowLabel ());
70
+ self ::assertEquals ($ label , $ result ->getTotalsRowLabel ());
71
71
72
72
$ function = 'sum ' ;
73
73
$ result = $ column ->setTotalsRowFunction ($ function );
74
- self ::assertEquals ($ function , $ column ->getTotalsRowFunction ());
74
+ self ::assertEquals ($ function , $ result ->getTotalsRowFunction ());
75
75
76
76
$ formula = '=SUM(Sales_Data[[#This Row],[Q1]:[Q4]]) ' ;
77
77
$ result = $ column ->setColumnFormula ($ formula );
Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ public function testVariousSets(): void
19
19
$ result = $ style ->setTheme (TableStyle::TABLE_STYLE_DARK1 );
20
20
self ::assertEquals (TableStyle::TABLE_STYLE_DARK1 , $ result ->getTheme ());
21
21
22
- $ result = $ style ->setShowFirstColumn (true );
22
+ $ style ->setShowFirstColumn (true );
23
23
self ::assertTrue ($ style ->getShowFirstColumn ());
24
24
25
- $ result = $ style ->setShowLastColumn (true );
25
+ $ style ->setShowLastColumn (true );
26
26
self ::assertTrue ($ style ->getShowLastColumn ());
27
27
28
- $ result = $ style ->setShowRowStripes (true );
28
+ $ style ->setShowRowStripes (true );
29
29
self ::assertTrue ($ style ->getShowRowStripes ());
30
30
31
- $ result = $ style ->setShowColumnStripes (true );
31
+ $ style ->setShowColumnStripes (true );
32
32
self ::assertTrue ($ style ->getShowColumnStripes ());
33
33
}
34
34
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function testVariousSets(): void
116
116
self ::assertFalse ($ result ->getShowHeaderRow ());
117
117
118
118
$ result = $ table ->setShowTotalsRow (true );
119
- self ::assertTrue ($ table ->getShowTotalsRow ());
119
+ self ::assertTrue ($ result ->getShowTotalsRow ());
120
120
}
121
121
122
122
public function testGetWorksheet (): void
You can’t perform that action at this time.
0 commit comments