Skip to content

Commit 8571cb3

Browse files
authored
Merge pull request #22 from Recras/testfunctional-handleexception-types
Accept any Throwable for sfTestFunctionalBase::handleException
2 parents 6c299c7 + 9368c20 commit 8571cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/test/sfTestFunctionalBase.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ static public function handlePhpError($errno, $errstr, $errfile, $errline)
478478
/**
479479
* Exception handler for the current test browser instance.
480480
*
481-
* @param Exception $exception The exception
481+
* @param Throwable $exception The exception
482482
*/
483-
function handleException(Exception $exception)
483+
function handleException(Throwable $exception)
484484
{
485485
$this->test()->error(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
486486

0 commit comments

Comments
 (0)