', htmlentities($input), ' | ';
echo '', htmlentities(str_replace($url2, '', $output)), ' | ';
echo '', htmlentities(str_replace($url2, '', $aoutput)), ' | ';
echo '';
echo $result ? 'Passed' : 'Failed';
echo ' | ';
echo '
';
}
$tests = array(
'redirtest/one.php' => 'redirtest/three.php',
'redirtest/two.php' => 'redirtest/three.php',
'redirtest/three.php' => 'redirtest/three.php',
'redirtest/four.php' => 'redirtest/three.php',
'redirtest/five.php' => 'redirtest/three.php',
// 'redirtest/six.php' => 'redirtest/three.php',
);
array_walk($tests, 'doRedirTest');
?>