2 PATH environment variable should be the same as the current PATH
6 require_once dirname(__FILE__) . '/../_setup.inc';
8 $contents = "--TEST--\n" .
12 "echo getenv('PATH'), \"" . '\n' ."\"\n" .
16 $test_case_file = dirname(__FILE__) . '/foobar.phpt';
17 file_put_contents($test_case_file, $contents);
19 $parser = new PHPT_Case_Parser();
20 $case = $parser->parse($test_case_file);
21 $case->run(new PHPT_Reporter_Null());
22 assert('trim($case->result->output) == getenv("PATH")');
27 <?php unlink(dirname(__FILE__) . '/foobar.phpt'); ?>