expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Unsupported value given, only int is supported'); $spreadsheet = new Spreadsheet(); $worksheet = $spreadsheet->getActiveSheet(); $sut = $this->getFormatter(); $sut->setFormattedValue($worksheet, 1, 1, 'sdfsdf'); } protected function assertNullValue(Cell $cell) { self::assertEquals('=0/86400', $cell->getValue()); } protected function assertCellStyle(Style $style) { self::assertEquals(DurationFormatter::DURATION_FORMAT, $style->getNumberFormat()->getFormatCode()); } }