--TEST-- syntax highlighting --SKIPIF-- --FILE-- '; file_put_contents($filename, $code); $filename_escaped = escapeshellarg($filename); var_dump(`$php -n -s $filename_escaped`); var_dump(`$php -n -s unknown`); @unlink($filename); echo "Done\n"; ?> --EXPECT-- string(1158) "
<?php
$test = "var"; //var
/* test class */
class test {
private $var = array();
public static function foo(Test $arg) {
echo "hello";
var_dump($this);
}
}
$o = new test;
?>
"
Could not open input file: unknown
NULL
Done