Changeset 1273 for branches

Show
Ignore:
Timestamp:
02/13/06 16:23:33 (3 years ago)
Author:
mbonetti
Message:

fixed a couple typos here and there ;)

Location:
branches/magpie-pirate-tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/magpie-pirate-tests/rss_unitTest.inc

    r1271 r1273  
    11<?php 
    22 
    3 define(UNIT_TESTS_DIR_NAME, 'TestCases'); 
     3define('UNIT_TESTS_DIR_NAME', 'TestCases'); 
    44 
    55class RSSUnitTest { 
     
    3333        if($this->doesUnitTestFileExist()) { 
    3434            $fp = @fopen($this->filePath, 'r'); 
    35             if (!fp) { 
     35            if (!$fp) { 
    3636                return ; 
    3737            } else { 
  • branches/magpie-pirate-tests/runTests.php

    r1272 r1273  
    1414 */ 
    1515 
     16error_reporting(E_ALL); 
     17 
    1618define('MAGPIE_CACHE_ON', false); 
    1719 
     
    1921require_once('rss_unitTest.inc'); 
    2022     
    21 $thisScriptBaseUrl = dirname($_SERVER['SCRIPT_URI']) . "/" ; 
     23$thisScriptBaseUrl =  
     24    'http://'.$_SERVER['HTTP_HOST']  
     25    .preg_replace('#(.+)/.*$#','$1',$_SERVER['REQUEST_URI']) ."/"; 
     26 
    2227$fetchTestUrl = $thisScriptBaseUrl . "fetchTest.php" ; 
     28 
    2329 
    2430$tests = array(); 
     
    2632$tests[] = "Wellformed/rss/item_title.xml"; 
    2733 
    28 error_reporting(E_ERROR); 
     34 
    2935echo "<html>\n<body>\n<table border=\"1\">\n"; 
    3036echo "<tr><th>Location</th><th>Description</th><th>Result</th>\n";