1--TEST--
2spoofchecker 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();
11echo "paypal with Cyrillic spoof characters\n";
12var_dump($x->isSuspicious($url));
13
14echo "certain all-uppercase Latin sequences can be spoof of Greek\n";
15var_dump($x->isSuspicious("NAPKIN PEZ"));
16var_dump($x->isSuspicious("napkin pez"));
17?>
18--EXPECTF--
19paypal with Cyrillic spoof characters
20bool(true)
21certain all-uppercase Latin sequences can be spoof of Greek
22bool(true)
23bool(false)
24