- Timestamp:
- 04/08/06 18:13:05 (3 years ago)
- Files:
-
- 1 modified
-
branches/magpie-hacks/MagpieTests/runTests.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/magpie-hacks/MagpieTests/runTests.php
r1418 r1422 23 23 24 24 $thisScriptBaseUrl = 'http://'.$_SERVER['HTTP_HOST'] 25 .preg_replace('#(.+)/.* $#','$1',$_SERVER['REQUEST_URI']) ."/";25 .preg_replace('#(.+)/.*\?.*$#','$1',$_SERVER['REQUEST_URI']) ."/"; 26 26 define( '_FETCH_TEST_URL', $thisScriptBaseUrl . "fetchTest.php" ); 27 27 … … 30 30 $_magpie_unitTest = new RSSUnitTest ($test); 31 31 $desc = $_magpie_unitTest->getDescription(); 32 $rss = @fetch_rss(_FETCH_TEST_URL . "?testfile=" . $test);33 32 if($debug) { 33 $rss = fetch_rss(_FETCH_TEST_URL . "?testfile=" . $test); 34 $result = assert($_magpie_unitTest->getExpect()); 34 35 print_r($rss); 36 } else { 37 $rss = @fetch_rss(_FETCH_TEST_URL . "?testfile=" . $test); 38 $result = assert($_magpie_unitTest->getExpect()); 35 39 } 36 return $result = @assert($_magpie_unitTest->getExpect());40 return $result; 37 41 } 38 42
