Annotation of embedaddon/php/ext/standard/tests/strings/bug48709.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #48709 (metaphone and 'wh')
3: --FILE--
4: <?php
5:
6: /* Initial letter exceptions */
7: $exceptions = array(
8: 'kn', // Drop first letter
9: 'gn', // ditto
10: 'pn', // ditto
11: 'ae', // ditto
12: 'wr', // ditto
13: 'x', // s
14: 'wh', // w
15: 'wa' // w
16: );
17:
18: foreach ($exceptions as $letter) {
19: printf("%s => %s\n", $letter, metaphone($letter));
20: }
21:
22: ?>
23: --EXPECT--
24: kn => N
25: gn => N
26: pn => N
27: ae => E
28: wr => R
29: x => S
30: wh => W
31: wa => W
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>