moriyoshi Thu Oct 10 13:05:05 2002 EDT Added files: /php4/ext/mbstring/tests 025.inc 025.phpt
Modified files: /php4/ext/mbstring/tests 021.inc 022.inc 023.inc 024.inc Log: Updated the test cases so that they use mb_regex_set_options. Added a test for mb_regex_set_options. Index: php4/ext/mbstring/tests/021.inc diff -u php4/ext/mbstring/tests/021.inc:1.1 php4/ext/mbstring/tests/021.inc:1.2 --- php4/ext/mbstring/tests/021.inc:1.1 Mon Oct 7 14:02:04 2002 +++ php4/ext/mbstring/tests/021.inc Thu Oct 10 13:05:03 2002 @@ -1,4 +1,5 @@ <?php + mb_regex_set_options( '' ); print mb_ereg_replace( ' ', '-', 'a b c d e' )."\n"; print mb_ereg_replace( '([a-z]+)','[\\1]', 'abc def ghi' ); ?> Index: php4/ext/mbstring/tests/022.inc diff -u php4/ext/mbstring/tests/022.inc:1.1 php4/ext/mbstring/tests/022.inc:1.2 --- php4/ext/mbstring/tests/022.inc:1.1 Mon Oct 7 14:02:05 2002 +++ php4/ext/mbstring/tests/022.inc Thu Oct 10 13:05:04 2002 @@ -1,4 +1,5 @@ <?php + mb_regex_set_options( '' ); mb_regex_encoding( 'EUC-JP' ); function verify_split( $spliton, $str, $count = 0 ) Index: php4/ext/mbstring/tests/023.inc diff -u php4/ext/mbstring/tests/023.inc:1.1 php4/ext/mbstring/tests/023.inc:1.2 --- php4/ext/mbstring/tests/023.inc:1.1 Mon Oct 7 14:02:05 2002 +++ php4/ext/mbstring/tests/023.inc Thu Oct 10 13:05:04 2002 @@ -1,4 +1,6 @@ <?php + mb_regex_set_options( '' ); + $encs = array( 'EUC-JP', 'Shift_JIS', 'SJIS', 'UTF-8' ); function test_ereg( $test_enc, $pat, $str, $in_enc = 'EUC-JP' ) { Index: php4/ext/mbstring/tests/024.inc diff -u php4/ext/mbstring/tests/024.inc:1.1 php4/ext/mbstring/tests/024.inc:1.2 --- php4/ext/mbstring/tests/024.inc:1.1 Mon Oct 7 14:02:05 2002 +++ php4/ext/mbstring/tests/024.inc Thu Oct 10 13:05:04 2002 @@ -1,4 +1,6 @@ <?php + mb_regex_set_options( '' ); + $encs = array( 'EUC-JP', 'Shift_JIS', 'SJIS', 'UTF-8' ); function test_search( $test_enc, $str, $look_for, $opt, $in_enc = 'EUC-JP' ) { Index: php4/ext/mbstring/tests/025.inc +++ php4/ext/mbstring/tests/025.inc <?php mb_regex_set_options( 'x' ); print mb_ereg_replace(' -', '+', '- - - - -' ); mb_regex_set_options( '' ); print mb_ereg_replace(' -', '+', '- - - - -' ); ?> Index: php4/ext/mbstring/tests/025.phpt +++ php4/ext/mbstring/tests/025.phpt --TEST-- mb_regex_set_options() --SKIPIF-- <?php include('skipif.inc'); ?> function_exists('mb_regex_set_options') or die("SKIP"); --POST-- --GET-- --FILE-- <?php include('025.inc'); ?> --EXPECT-- + + + + +-++++ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php