2 PHPT_Section_EXPECTREGEX can handle regular expressions that have Windows
7 require_once dirname(__FILE__) . '/../../_setup.inc';
8 require_once dirname(__FILE__) . '/../_simple-test-case.inc';
10 $case = new PHPT_SimpleTestCase();
11 $case->output = 'foobar' . rand(100, 200);
13 $data = "/.*foobar[12][0-9]{2}.*/\r\n===DONE===";
14 $section = new PHPT_Section_EXPECTREGEX($data);
17 trigger_error('exception not caught');
18 } catch (PHPT_Case_FailureException $e) {
22 $case->output = 'foobar' . rand(100, 200) . "\r\n===DONE===";