mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 12:40:00 +00:00
20 lines
507 B
PHP
20 lines
507 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\DateTime;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers;
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Exception as CalcExp;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class HelpersTest extends TestCase
|
|
{
|
|
public function testGetDateValueBadObject(): void
|
|
{
|
|
$this->expectException(CalcExp::class);
|
|
$this->expectExceptionMessage('#VALUE!');
|
|
Helpers::getDateValue($this);
|
|
}
|
|
}
|