- Timestamp:
- 02/13/06 16:23:33 (3 years ago)
- Location:
- branches/magpie-pirate-tests
- Files:
-
- 2 modified
-
rss_unitTest.inc (modified) (2 diffs)
-
runTests.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/magpie-pirate-tests/rss_unitTest.inc
r1271 r1273 1 1 <?php 2 2 3 define( UNIT_TESTS_DIR_NAME, 'TestCases');3 define('UNIT_TESTS_DIR_NAME', 'TestCases'); 4 4 5 5 class RSSUnitTest { … … 33 33 if($this->doesUnitTestFileExist()) { 34 34 $fp = @fopen($this->filePath, 'r'); 35 if (! fp) {35 if (!$fp) { 36 36 return ; 37 37 } else { -
branches/magpie-pirate-tests/runTests.php
r1272 r1273 14 14 */ 15 15 16 error_reporting(E_ALL); 17 16 18 define('MAGPIE_CACHE_ON', false); 17 19 … … 19 21 require_once('rss_unitTest.inc'); 20 22 21 $thisScriptBaseUrl = dirname($_SERVER['SCRIPT_URI']) . "/" ; 23 $thisScriptBaseUrl = 24 'http://'.$_SERVER['HTTP_HOST'] 25 .preg_replace('#(.+)/.*$#','$1',$_SERVER['REQUEST_URI']) ."/"; 26 22 27 $fetchTestUrl = $thisScriptBaseUrl . "fetchTest.php" ; 28 23 29 24 30 $tests = array(); … … 26 32 $tests[] = "Wellformed/rss/item_title.xml"; 27 33 28 error_reporting(E_ERROR); 34 29 35 echo "<html>\n<body>\n<table border=\"1\">\n"; 30 36 echo "<tr><th>Location</th><th>Description</th><th>Result</th>\n";
