add all controllers logic

This commit is contained in:
root
2026-03-11 17:53:15 -04:00
parent 3e6c577085
commit 2ef71cc92b
421 changed files with 12009 additions and 5211 deletions
@@ -0,0 +1,26 @@
<?php
namespace Tests\Unit\Services\Phone;
use App\Services\Phone\PhoneFormatterService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class PhoneFormatterServiceTest extends TestCase
{
use RefreshDatabase;
public function test_format_returns_null_for_invalid(): void
{
$service = app(PhoneFormatterService::class);
$this->assertNull($service->format('123'));
}
public function test_format_formats_digits(): void
{
$service = app(PhoneFormatterService::class);
$this->assertSame('555-123-4567', $service->format('(555) 123-4567'));
}
}