--TEST-- Test function show_source() by calling it with its expected arguments and output to variable, more test for highlight_file() --CREDITS-- Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --FILE-- --EXPECT-- *** Test by calling method or function with its expected arguments and output to variable *** string(1705) "
<?php
echo "*** Test by calling method or function with its expected arguments and output to variable ***\n";
$foo = 'bar';
$baz = "something ".$foo."\n";

if ( $foo == 'bar' )
{
  $baz = "baz\n";
}

 /* some code here */
$source = show_source(__FILE__, true);

var_dump($source);
?>
"