1--TEST-- 2spoofchecker with settings changed 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 "Check with default settings\n"; 12var_dump($x->areConfusable("HELLO", "H\xD0\x95LLO")); 13var_dump($x->areConfusable("hello", "h\xD0\xB5llo")); 14 15echo "Change confusable settings\n"; 16$x->setChecks(Spoofchecker::MIXED_SCRIPT_CONFUSABLE | 17 Spoofchecker::WHOLE_SCRIPT_CONFUSABLE | 18 Spoofchecker::SINGLE_SCRIPT_CONFUSABLE); 19var_dump($x->areConfusable("HELLO", "H\xD0\x95LLO")); 20var_dump($x->areConfusable("hello", "h\xD0\xB5llo")); 21?> 22--EXPECTF-- 23Check with default settings 24bool(true) 25bool(true) 26Change confusable settings 27bool(false) 28bool(true) 29