xref: /PHP-5.4/ext/ereg/tests/004.phpt (revision 1881091e)
1--TEST--
2simple ereg test
3--FILE--
4<?php $a="This is a nice and simple string";
5  if (ereg(".*nice and simple.*",$a)) {
6    echo "ok\n";
7  }
8  if (!ereg(".*doesn't exist.*",$a)) {
9    echo "ok\n";
10  }
11?>
12--EXPECTF--
13Deprecated: Function ereg() is deprecated in %s on line %d
14ok
15
16Deprecated: Function ereg() is deprecated in %s on line %d
17ok
18