Annotation of embedaddon/php/ext/standard/tests/strings/soundex.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: soundex() tests
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: var_dump(soundex(""));
        !             7: var_dump(soundex(-1));
        !             8: var_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: 
        !            28: foreach ($array as $str) {
        !            29:        var_dump(soundex($str));
        !            30: }
        !            31: 
        !            32: echo "Done\n";
        !            33: ?>
        !            34: --EXPECTF--    
        !            35: bool(false)
        !            36: string(4) "0000"
        !            37: 
        !            38: Warning: soundex() expects parameter 1 to be string, array given in %s on line %d
        !            39: NULL
        !            40: string(4) "F650"
        !            41: string(4) "T300"
        !            42: string(4) "T500"
        !            43: string(4) "O500"
        !            44: string(4) "S500"
        !            45: string(4) "T230"
        !            46: string(4) "T300"
        !            47: string(4) "H000"
        !            48: string(4) "S523"
        !            49: string(4) "A000"
        !            50: string(4) "C520"
        !            51: string(4) "I500"
        !            52: string(4) "G450"
        !            53: string(4) "A250"
        !            54: string(4) "H256"
        !            55: Done

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