Updated the test cases so that they use mb_regex_set_options.

Added a test for mb_regex_set_options.
This commit is contained in:
Moriyoshi Koizumi 2002-10-10 17:05:04 +00:00
parent e79772d6e0
commit 7b3fb01072
6 changed files with 24 additions and 0 deletions

View File

@ -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' );
?>

View File

@ -1,4 +1,5 @@
<?php
mb_regex_set_options( '' );
mb_regex_encoding( 'EUC-JP' );
function verify_split( $spliton, $str, $count = 0 )

View File

@ -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' ) {

View File

@ -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' ) {

View File

@ -0,0 +1,7 @@
<?php
mb_regex_set_options( 'x' );
print mb_ereg_replace(' -', '+', '- - - - -' );
mb_regex_set_options( '' );
print mb_ereg_replace(' -', '+', '- - - - -' );
?>

View File

@ -0,0 +1,11 @@
--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--
+ + + + +-++++