/** * @file * @brief Set of function to use with phpunit , to save files and to visualize them later, to use tracefile... */ class Facility { /** * include code for HTML to generate the display */ static function page_start() { $noalyss_url=NOALYSS_URL; $ret=<< PHPUNIT NOALYSS
EOF; return $ret; } /** * Create a file with the content * @param string $p_dir usually __DIR__ * @param string $p_file name of the file * @param string $p_content content */ static function save_file($p_dir, $p_file, $p_content) { printf (" saving %s/%s please check this file \n ",$p_dir,$p_file); $hFile=fopen($p_dir."/".$p_file, "w+"); fwrite($hFile, $p_content); fclose($hFile); } }