Annotation of embedaddon/php/ext/mbstring/tests/mb_split_empty_match.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_split() empty match
! 3: --
! 4: --SKIPIF--
! 5: <?php
! 6: extension_loaded('mbstring') or die('skip');
! 7: function_exists('mb_split') or die("skip mb_split() is not available in this build");
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: mb_regex_set_options('m');
! 12: var_dump(mb_split('^', "a\nb\nc"));
! 13: --EXPECT--
! 14: array(3) {
! 15: [0]=>
! 16: string(2) "a
! 17: "
! 18: [1]=>
! 19: string(2) "b
! 20: "
! 21: [2]=>
! 22: string(1) "c"
! 23: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>