Annotation of embedaddon/php/ext/intl/tests/spoofchecker_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: spoofchecker suspicious character checker
! 3: --SKIPIF--
! 4: <?php if(!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: $url = "http://www.payp\xD0\xB0l.com";
! 9:
! 10: $x = new Spoofchecker();
! 11: echo "paypal with Cyrillic spoof characters\n";
! 12: var_dump($x->isSuspicious($url));
! 13:
! 14: echo "certain all-uppercase Latin sequences can be spoof of Greek\n";
! 15: var_dump($x->isSuspicious("NAPKIN PEZ"));
! 16: var_dump($x->isSuspicious("napkin pez"));
! 17: ?>
! 18: --EXPECTF--
! 19: paypal with Cyrillic spoof characters
! 20: bool(true)
! 21: certain all-uppercase Latin sequences can be spoof of Greek
! 22: bool(true)
! 23: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>