diff --git a/Changes.md b/Changes.md index baf6b35..e8af6fd 100644 --- a/Changes.md +++ b/Changes.md @@ -2,6 +2,7 @@ - fixed README documentation - improved .au handler for user with whois-check.ausregistry.net.au + - added testsuite for verifying handlers 2006/01/31 David Saez - fixed lookup error on .co.za domains diff --git a/test.txt b/test.txt index 0b152fc..213a825 100644 --- a/test.txt +++ b/test.txt @@ -60,13 +60,13 @@ tvcorp sex.tv aero nic.aero biz neulevel.biz cat domini.cat -coop sex.coop , nic.coop +coop sex.coop nic.coop info afilias.info int who.int museum nic.museum name peter.morgan.name org example.org -pro registrypro.pr +pro registrypro.pro travel nic.travel // IP whois diff --git a/testsuite.php b/testsuite.php new file mode 100755 index 0000000..4b167be --- /dev/null +++ b/testsuite.php @@ -0,0 +1,60 @@ +#!/usr/local/bin/php -n + $line) + { + $pos = strpos($line,'/'); + + if ($pos !== false) $line = substr($line,0,$pos); + + $line = trim($line); + + if ($line=='') continue; + + $parts = explode(' ',str_replace("\t",' ',$line)); + + for ($i=1;$i $domain) + { + echo "\nTesting $domain ---------------------------------\n"; + $result = $whois->Lookup($domain); + print_r($result); + } + +?>