<?php
namespace Tests\Unit;
use App\Services\Accounting\TaxCalculator;
use PHPUnit\Framework\TestCase;
final class TaxCalculatorTest extends TestCase
{
    public function test_exclusive_five_percent_vat(): void { $result=(new TaxCalculator())->exclusive('10000.0000','5.0000'); self::assertSame('10000.0000',$result['net']); self::assertSame('500.0000',$result['tax']); self::assertSame('10500.0000',$result['gross']); }
    public function test_inclusive_five_percent_vat(): void { $result=(new TaxCalculator())->inclusive('10500.0000','5.0000'); self::assertSame('10000.0000',$result['net']); self::assertSame('500.0000',$result['tax']); }
}
