1--TEST-- 2spoofchecker with locale settings 3--SKIPIF-- 4<?php if(!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip'; ?> 5--FILE-- 6<?php 7 8$korean = "\xED\x95\x9C" . "\xEA\xB5\xAD" . "\xEB\xA7\x90"; 9 10$x = new Spoofchecker(); 11echo "Is suspcious, en_US\n"; 12 13$x->setAllowedLocales('en_US'); 14var_dump($x->isSuspicious($korean)); 15 16echo "Is suspcious, ko_KR\n"; 17 18$x->setAllowedLocales('en_US, ko_KR'); 19var_dump($x->isSuspicious($korean)); 20?> 21--EXPECT-- 22Is suspcious, en_US 23bool(true) 24Is suspcious, ko_KR 25bool(false) 26