4chdir(dirname(__FILE__));
5require_once
'common.php';
13chdir(dirname(__FILE__) .
'/..');
48 $file ==
'./library/HTMLPurifier/Lexer/PH5P.php' ||
49 $file ==
'./maintenance/PH5P.php'
51 $ext = strrchr(
$file,
'.');
75 $line =
"<!-- %s\n-->";
107 throw new Exception(
'Unknown file: ' .
$file);
113 $regex =
'~' . str_replace(
'%s',
'vim: .+', preg_quote($line,
'~')) .
'~m';
118 if (strpos(
$contents,
"\r\n") !==
false) $nl =
"\r\n";
119 elseif (strpos(
$contents,
"\n") !==
false) $nl =
"\n";
120 elseif (strpos(
$contents,
"\r") !==
false) $nl =
"\r";
An exception for terminatinating execution or to throw for unit testing.
postfix_is($comp, $subject)
prefix_is($comp, $subject)
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file