We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f783c commit 938ba72Copy full SHA for 938ba72
tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/HelpersTest.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\DateTime;
6
7
+use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers;
8
+use PhpOffice\PhpSpreadsheet\Calculation\Exception as CalcExp;
9
+use PHPUnit\Framework\TestCase;
10
11
+class HelpersTest extends TestCase
12
+{
13
+ public function testGetDateValueBadObject(): void
14
+ {
15
+ $this->expectException(CalcExp::class);
16
+ $this->expectExceptionMessage('#VALUE!');
17
+ Helpers::getDateValue($this);
18
+ }
19
+}
0 commit comments