From bd2de609c4e240dc25c434c946770949157e284a Mon Sep 17 00:00:00 2001 From: io-developer Date: Fri, 17 May 2019 18:55:55 +0300 Subject: [PATCH] test (tld/parsing): cover .BN .CF --- .../Iodev/Whois/Modules/Tld/TldParsingTest.php | 4 ++-- .../Tld/parsing_data/.bn/google.com.bn.json | 15 +++++++++++++++ .../Modules/Tld/parsing_data/.cf/google.cf.json | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 tests/Iodev/Whois/Modules/Tld/parsing_data/.bn/google.com.bn.json create mode 100644 tests/Iodev/Whois/Modules/Tld/parsing_data/.cf/google.cf.json diff --git a/tests/Iodev/Whois/Modules/Tld/TldParsingTest.php b/tests/Iodev/Whois/Modules/Tld/TldParsingTest.php index 3f6a2c64..afdeaaf0 100644 --- a/tests/Iodev/Whois/Modules/Tld/TldParsingTest.php +++ b/tests/Iodev/Whois/Modules/Tld/TldParsingTest.php @@ -177,7 +177,7 @@ public function getTestData() // .BN [ "free.bn", ".bn/free.txt", null ], - // [ "google.com.bn", ".bn/google.com.bn.txt", ".bn/google.com.bn.json" ], + [ "google.com.bn", ".bn/google.com.bn.txt", ".bn/google.com.bn.json" ], // .BO [ "free.bo", ".bo/free.txt", null ], @@ -210,7 +210,7 @@ public function getTestData() // .CF [ "free.cf", ".cf/free.txt", null ], - // [ "google.cf", ".cf/google.cf.txt", ".cf/google.cf.json" ], + [ "google.cf", ".cf/google.cf.txt", ".cf/google.cf.json" ], // .CI [ "free.ci", ".ci/free.txt", null ], diff --git a/tests/Iodev/Whois/Modules/Tld/parsing_data/.bn/google.com.bn.json b/tests/Iodev/Whois/Modules/Tld/parsing_data/.bn/google.com.bn.json new file mode 100644 index 00000000..b8261f68 --- /dev/null +++ b/tests/Iodev/Whois/Modules/Tld/parsing_data/.bn/google.com.bn.json @@ -0,0 +1,15 @@ +{ + "domainName": "google.com.bn", + "whoisServer": "", + "nameServers": [ + "ns1.google.com", + "ns2.google.com" + ], + "creationDate": "2006-11-10T00:00:00", + "expirationDate": "2018-11-13T00:00:00", + "states": [ + "ok" + ], + "owner": "INTEGRICITY CORPORATION SDN BHD (BNC304T)", + "registrar": "TELEKOM BRUNEI BERHAD" +} \ No newline at end of file diff --git a/tests/Iodev/Whois/Modules/Tld/parsing_data/.cf/google.cf.json b/tests/Iodev/Whois/Modules/Tld/parsing_data/.cf/google.cf.json new file mode 100644 index 00000000..e70fec54 --- /dev/null +++ b/tests/Iodev/Whois/Modules/Tld/parsing_data/.cf/google.cf.json @@ -0,0 +1,17 @@ +{ + "domainName": "google.cf", + "whoisServer": "", + "nameServers": [ + "ns1.google.com", + "ns2.google.com", + "ns3.google.com", + "ns4.google.com" + ], + "creationDate": "2013-03-27T00:00:00", + "expirationDate": "2018-06-27T00:00:00", + "states": [ + "active" + ], + "owner": "Google Inc", + "registrar": "Google Inc" +} \ No newline at end of file