- Timestamp:
- 04/08/06 19:01:00 (3 years ago)
- Files:
-
- 1 modified
-
branches/magpie-hacks/MagpieTests/runTests.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/magpie-hacks/MagpieTests/runTests.php
r1422 r1423 22 22 require_once('rss_unitTest.inc'); 23 23 24 $thisScriptBaseUrl = 'http://'.$_SERVER['HTTP_HOST'] 25 .preg_replace('#(.+)/.*\?.*$#','$1',$_SERVER['REQUEST_URI']) ."/"; 24 25 $thisScriptBaseUrl = "http://" . $_SERVER['HTTP_HOST'] 26 . preg_replace('#(.+)/.*$#','$1',$_SERVER['PHP_SELF']) ."/"; 26 27 define( '_FETCH_TEST_URL', $thisScriptBaseUrl . "fetchTest.php" ); 27 28 … … 36 37 } else { 37 38 $rss = @fetch_rss(_FETCH_TEST_URL . "?testfile=" . $test); 38 $result = assert($_magpie_unitTest->getExpect());39 $result = @assert($_magpie_unitTest->getExpect()); 39 40 } 40 41 return $result; … … 83 84 echo "<td>\n"; 84 85 if ($result){ 85 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?testfile=" . $testNameSansExt. "\">" ;86 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?testfile=" . urlencode($testNameSansExt) . "\">" ; 86 87 echo "<font color=\"green\">Test Passed</font>"; 87 88 echo "</a>"; 88 89 }else{ 89 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?testfile=" . $testNameSansExt. "\">" ;90 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?testfile=" . urlencode($testNameSansExt) . "\">" ; 90 91 echo "<font color=\"red\">Test Failed</font>"; 91 92 echo "</a>";
