<?php

namespace Tests\Unit;

use App\Support\PhoneNumber;
use PHPUnit\Framework\TestCase;

class PhoneNumberTest extends TestCase
{
    public function test_nigerian_local_number_is_normalized_for_whatsapp(): void
    {
        $this->assertSame('2348064664220', PhoneNumber::forWhatsapp('08064664220'));
    }

    public function test_existing_international_number_is_preserved(): void
    {
        $this->assertSame('2348064664220', PhoneNumber::forWhatsapp('+234 806 466 4220'));
    }
}
