Annotation of embedaddon/php/ext/intl/tests/spoofchecker_002.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: spoofchecker confusable tests
                      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();
                     11: echo "Checking if words are confusable\n";
                     12: var_dump($x->areConfusable("hello, world", "goodbye, world"));
                     13: var_dump($x->areConfusable("hello, world", "hello, world"));
                     14: var_dump($x->areConfusable("hello, world", "he11o, wor1d"));
                     15: ?>
                     16: --EXPECTF--
                     17: Checking if words are confusable
                     18: bool(false)
                     19: bool(true)
                     20: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>