Release 2.12 (#4609)
This commit is contained in:
@@ -35,7 +35,7 @@ class DurationFormatterTest extends AbstractFormatterTest
|
||||
return '=3600/86400';
|
||||
}
|
||||
|
||||
public function testFormattedValueWithInvalidValue()
|
||||
public function testFormattedValueWithInvalidValue(): void
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Unsupported value given, only int is supported');
|
||||
@@ -47,12 +47,12 @@ class DurationFormatterTest extends AbstractFormatterTest
|
||||
$sut->setFormattedValue($worksheet, 1, 1, 'sdfsdf');
|
||||
}
|
||||
|
||||
protected function assertNullValue(Cell $cell)
|
||||
public function assertNullValue(Cell $cell): void
|
||||
{
|
||||
self::assertEquals('=0/86400', $cell->getValue());
|
||||
}
|
||||
|
||||
protected function assertCellStyle(Style $style)
|
||||
public function assertCellStyle(Style $style): void
|
||||
{
|
||||
self::assertEquals(DurationFormatter::DURATION_FORMAT, $style->getNumberFormat()->getFormatCode());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user