Annotation of embedaddon/php/ext/mbstring/tests/mb_ereg-compat-01.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_ereg() compat test 1
! 3: --SKIPIF--
! 4: <?php
! 5: extension_loaded('mbstring') or die('skip');
! 6: function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: /* (counterpart: ext/standard/tests/reg/004.phpt) */
! 11: $a="This is a nice and simple string";
! 12: if (mb_ereg(".*nice and simple.*",$a)) {
! 13: echo "ok\n";
! 14: }
! 15: if (!mb_ereg(".*doesn't exist.*",$a)) {
! 16: echo "ok\n";
! 17: }
! 18: ?>
! 19: --EXPECT--
! 20: ok
! 21: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>