2 If the $leave_file property is set to true on PHPT_Case,
3 the test file will not be destroyed when the test case is destructed
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__) . '/fake-test-case.phpt');
24 assert('file_exists($filename)');
25 $case->leave_file = true;
27 assert('file_exists($filename)');