--TEST-- Test Template rendering --FILE-- render(array( 'arr' => array('index'), 'assoc' => array('nested' => 'moo', 1 => 'cow'), 'bool' => true, 'double' => 9.75, 'long' => 123, 'string' => 'abc', 'null' => NULL )); $out_fh = fopen("php://fd/$fd", "r"); $contents = fread($out_fh, 36); unlink($temp_file); if ($contents == $expected) { echo 'Ok'; } else { echo $expected,PHP_EOL,'---',PHP_EOL,$contents,PHP_EOL; echo 'Fail'; } --EXPECT-- Ok