1--TEST-- 2spoofchecker suspicious character checker 3--EXTENSIONS-- 4intl 5--SKIPIF-- 6<?php if(!class_exists("Spoofchecker")) print 'skip'; ?> 7--FILE-- 8<?php 9 10echo "paypal with Cyrillic spoof characters\n"; 11$x = new Spoofchecker(); 12var_dump($x->isSuspicious("http://www.payp\u{0430}l.com")); 13var_dump($x->isSuspicious("\u{041F}aypal.com")); 14 15echo "certain all-uppercase Latin sequences can be spoof of Greek\n"; 16$x = new Spoofchecker(); 17$x->setAllowedLocales("gr_GR"); 18var_dump($x->isSuspicious("NAPKIN PEZ")); 19var_dump($x->isSuspicious("napkin pez")); 20?> 21--EXPECT-- 22paypal with Cyrillic spoof characters 23bool(true) 24bool(true) 25certain all-uppercase Latin sequences can be spoof of Greek 26bool(true) 27bool(true) 28