diff options
Diffstat (limited to 'ext/ereg/tests/004.phpt')
-rw-r--r-- | ext/ereg/tests/004.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/ereg/tests/004.phpt b/ext/ereg/tests/004.phpt new file mode 100644 index 0000000000..3e535c6a9d --- /dev/null +++ b/ext/ereg/tests/004.phpt @@ -0,0 +1,14 @@ +--TEST-- +simple ereg test +--FILE-- +<?php $a="This is a nice and simple string"; + if (ereg(".*nice and simple.*",$a)) { + echo "ok\n"; + } + if (!ereg(".*doesn't exist.*",$a)) { + echo "ok\n"; + } +?> +--EXPECT-- +ok +ok |