class TaxProviderRegistryTest extends TestCase
{ public function testProviderRegistered(): void
{ $registry =
new TaxProviderRegistry( [new TestConstantTaxRateProvider()] );
static::
assertTrue($registry->
has(TestConstantTaxRateProvider::
class));
static::
assertInstanceOf(TestConstantTaxRateProvider::
class,
$registry->
get(TestConstantTaxRateProvider::
class));
static::
assertFalse($registry->
has(TestEmptyTaxProvider::
class));
} public function testProviderNotFound(): void
{ $registry =
new TaxProviderRegistry( [