1--TEST--
2soundex() tests
3--FILE--
4<?php
5
6var_dump(soundex(""));
7var_dump(soundex(-1));
8var_dump(soundex(array()));
9
10$array = array(
11"From",
12"that",
13"time",
14"on",
15"Sam",
16"thought",
17"that",
18"he",
19"sensed",
20"a",
21"change",
22"in",
23"Gollum",
24"again.",
25"He was more fawning and would-be friendly; but Sam surprised some strange looks in his eyes at times, especially towards Frodo."
26);
27
28foreach ($array as $str) {
29	var_dump(soundex($str));
30}
31
32echo "Done\n";
33?>
34--EXPECTF--
35bool(false)
36string(4) "0000"
37
38Warning: soundex() expects parameter 1 to be string, array given in %s on line %d
39NULL
40string(4) "F650"
41string(4) "T300"
42string(4) "T500"
43string(4) "O500"
44string(4) "S500"
45string(4) "T230"
46string(4) "T300"
47string(4) "H000"
48string(4) "S523"
49string(4) "A000"
50string(4) "C520"
51string(4) "I500"
52string(4) "G450"
53string(4) "A250"
54string(4) "H256"
55Done
56