Annotation of embedaddon/php/ext/ereg/tests/spliti_basic_003.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test spliti() function : basic functionality - a few non-matches
                      3: --FILE--
                      4: <?php
                      5: /* Prototype  : proto array spliti(string pattern, string string [, int limit])
                      6:  * Description: spliti string into array by regular expression 
                      7:  * Source code: ext/standard/reg.c
                      8:  * Alias to functions: 
                      9:  */
                     10: 
                     11: $replacement = 'r';
                     12: 
                     13: var_dump(spliti('[A-Z]', '-- 0 --'));
                     14: var_dump(spliti('(a){4}', '--- aaa ---'));
                     15: var_dump(spliti('^a', '--- ba ---'));
                     16: var_dump(spliti('b$', '--- ba ---'));
                     17: var_dump(spliti('[:alpha:]', '--- x ---'));
                     18: 
                     19: 
                     20: echo "Done";
                     21: ?>
                     22: --EXPECTF--
                     23: Deprecated: Function spliti() is deprecated in %s on line %d
                     24: array(1) {
                     25:   [0]=>
                     26:   string(7) "-- 0 --"
                     27: }
                     28: 
                     29: Deprecated: Function spliti() is deprecated in %s on line %d
                     30: array(1) {
                     31:   [0]=>
                     32:   string(11) "--- aaa ---"
                     33: }
                     34: 
                     35: Deprecated: Function spliti() is deprecated in %s on line %d
                     36: array(1) {
                     37:   [0]=>
                     38:   string(10) "--- ba ---"
                     39: }
                     40: 
                     41: Deprecated: Function spliti() is deprecated in %s on line %d
                     42: array(1) {
                     43:   [0]=>
                     44:   string(10) "--- ba ---"
                     45: }
                     46: 
                     47: Deprecated: Function spliti() is deprecated in %s on line %d
                     48: array(1) {
                     49:   [0]=>
                     50:   string(9) "--- x ---"
                     51: }
                     52: Done

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