Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function testMODENoArgs(): void |
||
34 | { |
||
35 | $this->expectException(\PhpOffice\PhpSpreadsheet\Calculation\Exception::class); |
||
36 | |||
37 | $workbook = new Spreadsheet(); |
||
38 | $sheet = $workbook->getActiveSheet(); |
||
39 | |||
40 | $sheet->setCellValue('B1', '=MODE()'); |
||
41 | self::assertEquals('#N/A', $sheet->getCell('B1')->getCalculatedValue()); |
||
42 | } |
||
44 |