Changeset 148
- Timestamp:
- 04/24/08 01:24:47 (9 months ago)
- Files:
-
- 1 modified
-
trunk/src/Stagehand/TestRunner.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Stagehand/TestRunner.php
r146 r148 251 251 private static function _parseOptions() 252 252 { 253 PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); 253 254 $argv = Console_Getopt::readPHPArgv(); 255 PEAR::staticPopErrorHandling(); 256 if (PEAR::isError($argv)) { 257 throw new Stagehand_TestRunner_Exception('ERROR: ' . preg_replace('/^Console_Getopt: /', '', $argv->getMessage())); 258 } 259 254 260 array_shift($argv); 261 PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); 255 262 $allOptions = Console_Getopt::getopt2($argv, 'hVRcp:aw:'); 263 PEAR::staticPopErrorHandling(); 256 264 if (PEAR::isError($allOptions)) { 257 265 throw new Stagehand_TestRunner_Exception('ERROR: ' . preg_replace('/^Console_Getopt: /', '', $allOptions->getMessage()));
