Add report exports

This commit is contained in:
Constantin Graf
2024-10-25 16:37:40 +02:00
committed by Constantin Graf
parent 7c1fe35754
commit 8712cfb9dc
16 changed files with 924 additions and 82 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Tests\Unit\Service;
use App\Service\IntervalService;
use Carbon\CarbonInterval;
use Tests\TestCase;
class IntervalServiceTest extends TestCase
{
public function test_format_returns_correctly_formatted_interval(): void
{
// Arrange
$intervalService = app(IntervalService::class);
$interval = CarbonInterval::seconds(123456789123);
// Act
$result = $intervalService->format($interval);
// Assert
$this->assertEquals('34293552:32:03', $result);
}
}