Skip to content

Commit 938ba72

Browse files
committed
Coverage Tweak
1 parent 96f783c commit 938ba72

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)