*/ declare(strict_types=1); namespace oat\taoDeliveryRdf\test\unit\model\Delivery\Business\Domain; use oat\generis\test\TestCase; use oat\taoDeliveryRdf\model\Delivery\Business\Domain\DeliveryNamespace; class DeliveryNamespaceTest extends TestCase { /** * @param string $expected * @param DeliveryNamespace $sut * * @dataProvider validDeliveryNamespaces */ public function testNamespaceValueNormalizationAndComparison(string $expected, DeliveryNamespace $sut): void { static::assertEquals($expected, $sut); static::assertTrue($sut->equals(new DeliveryNamespace($expected))); } public function validDeliveryNamespaces(): array { return [ 'uri' => ['https://taotesting.com', new DeliveryNamespace('https://taotesting.com')], 'fragmentContainingUri' => ['https://taotesting.com', new DeliveryNamespace('https://taotesting.com#')], ]; } }