2 PHPT_Case should be instantiated with a SectionList with the required sections as
3 defined by PHPT_Case_Validator
7 require_once dirname(__FILE__) . '/../_setup.inc';
9 $name = "Same test case name";
10 $filename = dirname(__FILE__) . '/some-fake-test-case.php';
12 echo 'Hello world...';
15 $file = new PHPT_Section_FILE($code);
16 $file->filename = $filename;
18 $sections = new PHPT_SectionList(array(
19 new PHPT_Section_TEST($name),
23 $case = new PHPT_Case($sections, dirname(__FILE__) . '/some-fake-test-case.phpt');
24 assert('$case->name == $name');
25 assert('$case->filename == $filename . "t"');
26 assert('$case->code == $code');
27 assert('$case->sections === $sections');