1--TEST-- 2spoofchecker suspicious character checker 3--EXTENSIONS-- 4intl 5--SKIPIF-- 6<?php if(!class_exists("Spoofchecker")) print 'skip'; ?> 7<?php if (version_compare(INTL_ICU_VERSION, '57.1') >= 0)die('skip for ICU < 57.1'); ?> 8--FILE-- 9<?php 10 11$url = "http://www.payp\xD0\xB0l.com"; 12 13$x = new Spoofchecker(); 14echo "paypal with Cyrillic spoof characters\n"; 15var_dump($x->isSuspicious($url)); 16 17echo "certain all-uppercase Latin sequences can be spoof of Greek\n"; 18var_dump($x->isSuspicious("NAPKIN PEZ")); 19var_dump($x->isSuspicious("napkin pez")); 20?> 21--EXPECT-- 22paypal with Cyrillic spoof characters 23bool(true) 24certain all-uppercase Latin sequences can be spoof of Greek 25bool(true) 26bool(false) 27