2 If run() encounters a VetoException it will call:
8 on the supplied $reporter object, if any.
12 require_once dirname(__FILE__) . '/../_setup.inc';
13 require_once dirname(__FILE__) . '/../_simple-reporter.inc';
15 $test = new PHPT_Section_TEST('simple hello world');
16 $file = new PHPT_Section_FILE('<?php echo "Hello World!"; ?>');
17 $expect = new PHPT_Section_EXPECT('Hola World!');
18 $list = new PHPT_SectionList(array(
24 $case = new PHPT_Case($list, dirname(__FILE__) . '/fake-test-case.phpt');
25 $reporter = new PHPT_SimpleReporter();
26 $case->run($reporter);
33 @unlink(dirname(__FILE__) . '/fake-test-case.phpt.php');
34 @unlink(dirname(__FILE__) . '/fake-test-case.phpt.exp');
35 @unlink(dirname(__FILE__) . '/fake-test-case.phpt.out');
36 @unlink(dirname(__FILE__) . '/fake-test-case.phpt.diff');
37 @unlink(dirname(__FILE__) . '/fake-test-case.phpt.log');
40 PHPT_SimpleReporter::onCaseStart was called
41 PHPT_SimpleReporter::onCaseFail was called
42 PHPT_SimpleReporter::onCaseEnd was called