--TEST-- highlight_file() tests --INI-- highlight.string=#DD0000 highlight.comment=#FF9900 highlight.keyword=#007700 highlight.bg=#FFFFFF highlight.default=#0000BB highlight.html=#000000 allow_url_include=1 allow_url_fopen=1 --FILE-- ')); var_dump(highlight_file('data:,')); $data = ' '; file_put_contents($filename, $data); var_dump(highlight_file($filename)); @unlink($filename); echo "Done\n"; ?> --EXPECTF-- Warning: highlight_file() expects at least 1 parameter, 0 given in %s on line %d bool(false) Warning: highlight_file(%shighlight_file.dat): failed to open stream: No such file or directory in %s on line %d Warning: highlight_file(): Failed opening '%shighlight_file.dat' for highlighting in %s on line %d bool(false) <?php echo "test"?> bool(true) <?php echo "test ?> bool(true)
<?php 
 
class test 
     public 
$var 1
     private function 
foo() { echo "foo"; }
     public function 
bar() { var_dump(test::foo()); }
 }  
?>
bool(true) Done