<?php

require_once __DIR__ . '/SegmentSeatAvailabilityBootstrap.php';

use App\Libraries\TemporaryBookHoldService;
use PHPUnit\Framework\TestCase;

final class TemporaryBookHoldServiceTest extends TestCase
{
    public function testNormalizeSeatNamesForMatchTrimsAndJoins(): void
    {
        $this->assertSame('11,3', TemporaryBookHoldService::normalizeSeatNamesForMatch('11, 3'));
        $this->assertSame('11,3', TemporaryBookHoldService::normalizeSeatNamesForMatch(' 11 , 3 '));
        $this->assertSame('5', TemporaryBookHoldService::normalizeSeatNamesForMatch('5'));
    }
}
