Changeset 143

Show
Ignore:
Timestamp:
03/06/08 12:22:47 (10 months ago)
Author:
iteman
Message:

- Merged changes trunk r140:r142 into releases/release-2.1.0.

Location:
releases/release-2.1.0
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • releases/release-2.1.0/package.xml

    r138 r143  
    1616  <active>yes</active> 
    1717 </lead> 
    18  <date>2008-03-05</date> 
    19  <time>11:37:00</time> 
     18 <date>2008-03-06</date> 
     19 <time>12:00:11</time> 
    2020 <version> 
    2121  <release>2.1.0</release> 
     
    233233    <api>stable</api> 
    234234   </stability> 
    235    <date>2008-03-05</date> 
     235   <date>2008-03-06</date> 
    236236   <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License (revised)</license> 
    237237   <notes>A new release of Stagehand_TestRunner is now available. 
  • releases/release-2.1.0/src/Stagehand/TestRunner.php

    r136 r143  
    258258        } 
    259259 
    260         $directory = null; 
     260        $directory = getcwd(); 
    261261        $isRecursive = false; 
    262262        $color = false; 
  • releases/release-2.1.0/src/Stagehand/TestRunner/Collector/Common.php

    r135 r143  
    112112    public function collect() 
    113113    { 
    114         if (is_null($this->_targetPath)) { 
    115             $absoluteTargetPath = getcwd(); 
    116         } else { 
    117             if (!file_exists($this->_targetPath)) { 
    118                 if (preg_match("/{$this->_suffix}\.php\$/", $this->_targetPath)) { 
    119                     throw new Stagehand_TestRunner_Exception("The directory or file [ {$this->_targetPath} ] is not found."); 
    120                 } 
    121  
    122                 $this->_targetPath = "{$this->_targetPath}{$this->_suffix}.php"; 
    123             } 
    124  
    125             $absoluteTargetPath = realpath($this->_targetPath); 
    126             if ($absoluteTargetPath === false) { 
     114        if (!file_exists($this->_targetPath)) { 
     115            if (preg_match("/{$this->_suffix}\.php\$/", $this->_targetPath)) { 
    127116                throw new Stagehand_TestRunner_Exception("The directory or file [ {$this->_targetPath} ] is not found."); 
    128117            } 
     118 
     119            $this->_targetPath = "{$this->_targetPath}{$this->_suffix}.php"; 
     120        } 
     121 
     122        $absoluteTargetPath = realpath($this->_targetPath); 
     123        if ($absoluteTargetPath === false) { 
     124            throw new Stagehand_TestRunner_Exception("The directory or file [ {$this->_targetPath} ] is not found."); 
    129125        } 
    130126