From 66038011a7c01c6cc508e32912270d16d0fa36d1 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Fri, 30 Aug 2024 22:27:59 +0200 Subject: [PATCH] Add CentralNIC registry --- src/Registries/CentralNIC.php | 12 ++++++++++++ src/Registries/CentralNICTest.php | 12 ++++++++++++ tests/EPPRegistryTest.php | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 src/Registries/CentralNIC.php create mode 100644 src/Registries/CentralNICTest.php diff --git a/src/Registries/CentralNIC.php b/src/Registries/CentralNIC.php new file mode 100644 index 0000000..1cf9c2c --- /dev/null +++ b/src/Registries/CentralNIC.php @@ -0,0 +1,12 @@ +assertEquals('tcp://example.com',(new class('tcp://example.com',1234) extends EPPRegistry{})->getHost()); + $this->assertEquals('ssl://epp.centralnic.com',(new CentralNIC)->getHost()); + $this->assertEquals('ssl://epp-ote.centralnic.com',(new CentralNICTest)->getHost()); $this->assertEquals('ssl://epp.registry.eu',(new EURID)->getHost()); $this->assertEquals('ssl://epp.tryout.registry.eu',(new EURIDTest)->getHost()); $this->assertEquals('ssl://drs.domain-registry.nl',(new SIDN)->getHost()); @@ -22,6 +26,8 @@ public function testHost(): void{ public function testPort(): void{ $this->assertEquals(1234,(new class('tcp://example.com',1234) extends EPPRegistry{})->getPort()); + $this->assertEquals(700,(new CentralNIC)->getPort()); + $this->assertEquals(700,(new CentralNICTest)->getPort()); $this->assertEquals(700,(new EURID)->getPort()); $this->assertEquals(700,(new EURIDTest)->getPort()); $this->assertEquals(700,(new SIDN)->getPort());