Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function testMODE($expectedResult, string $str): void |
||
17 | { |
||
18 | $workbook = new Spreadsheet(); |
||
19 | $sheet = $workbook->getActiveSheet(); |
||
20 | |||
21 | $row = 1; |
||
22 | $sheet->setCellValue("B$row", "=MODE($str)"); |
||
23 | $sheet->setCellValue("C$row", "=MODE.SNGL($str)"); |
||
24 | self::assertEquals($expectedResult, $sheet->getCell("B$row")->getCalculatedValue()); |
||
25 | self::assertEquals($expectedResult, $sheet->getCell("C$row")->getCalculatedValue()); |
||
26 | } |
||
44 |