Changeset 143
- Timestamp:
- 03/06/08 12:22:47 (10 months ago)
- Location:
- releases/release-2.1.0
- Files:
-
- 3 modified
-
package.xml (modified) (2 diffs)
-
src/Stagehand/TestRunner.php (modified) (1 diff)
-
src/Stagehand/TestRunner/Collector/Common.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/release-2.1.0/package.xml
r138 r143 16 16 <active>yes</active> 17 17 </lead> 18 <date>2008-03-0 5</date>19 <time>1 1:37:00</time>18 <date>2008-03-06</date> 19 <time>12:00:11</time> 20 20 <version> 21 21 <release>2.1.0</release> … … 233 233 <api>stable</api> 234 234 </stability> 235 <date>2008-03-0 5</date>235 <date>2008-03-06</date> 236 236 <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License (revised)</license> 237 237 <notes>A new release of Stagehand_TestRunner is now available. -
releases/release-2.1.0/src/Stagehand/TestRunner.php
r136 r143 258 258 } 259 259 260 $directory = null;260 $directory = getcwd(); 261 261 $isRecursive = false; 262 262 $color = false; -
releases/release-2.1.0/src/Stagehand/TestRunner/Collector/Common.php
r135 r143 112 112 public function collect() 113 113 { 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)) { 127 116 throw new Stagehand_TestRunner_Exception("The directory or file [ {$this->_targetPath} ] is not found."); 128 117 } 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."); 129 125 } 130 126
