Changeset 8454
- Timestamp:
- 04/14/08 19:57:31 (1 year ago)
- Files:
-
- branches/1.1/lib/test/sfTestBrowser.class.php (modified) (1 diff)
- branches/1.1/lib/util/sfBrowser.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/test/sfTestBrowser.class.php
r7723 r8454 348 348 } 349 349 } 350 351 $this->resetCurrentException(); 350 352 351 353 return $this; branches/1.1/lib/util/sfBrowser.class.php
r8225 r8454 161 161 public function call($uri, $method = 'get', $parameters = array(), $changeStack = true) 162 162 { 163 // check that the previous call() hasn't returned an uncatched exception 164 $this->checkCurrentExceptionIsEmpty(); 165 163 166 $uri = $this->fixUri($uri); 164 167 … … 428 431 429 432 /** 430 * Gets current exception 433 * Gets current exception. 431 434 * 432 435 * @return sfException … … 435 438 { 436 439 return $this->currentException; 440 } 441 442 /** 443 * Resets the current exception. 444 */ 445 public function resetCurrentException() 446 { 447 $this->currentException = null; 448 } 449 450 public function checkCurrentExceptionIsEmpty() 451 { 452 if (is_null($this->getCurrentException())) 453 { 454 return; 455 } 456 457 $this->test->fail(sprintf('last request threw an uncatched exception "%s: %s"', get_class($this->getCurrentException()), $this->getCurrentException()->getMessage())); 437 458 } 438 459 … … 684 705 public function shutdown() 685 706 { 707 $this->checkCurrentExceptionIsEmpty(); 708 686 709 // we remove all session data 687 710 sfToolkit::clearDirectory(sfConfig::get('sf_test_cache_dir').'/sessions');

