2 If phpt file has Windows EOLs, it should still parse properly.
4 A work around for PHP bug 43474 and a fixes Issue 4 in the code tracker
8 require_once dirname(__FILE__) . '/_setup.inc';
10 $code = "--TEST--\r\n" .
17 file_put_contents(dirname(__FILE__) . '/foobar.php', $code);
19 $parser = new PHPT_Case_Parser();
20 $case = $parser->parse(dirname(__FILE__) . '/foobar.php');
22 assert('$case instanceof PHPT_Case');
27 <?php unlink(dirname(__FILE__) . '/foobar.php'); ?>