|
@@ -68,7 +68,7 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
|
return $this->doDownload($package, $path, $url, $prevPackage);
|
|
return $this->doDownload($package, $path, $url, $prevPackage);
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
- if ($e instanceof \PHPUnit_Framework_Exception) {
|
|
|
|
|
|
+ if ($e instanceof \PHPUnit\Framework\Exception) {
|
|
throw $e;
|
|
throw $e;
|
|
}
|
|
}
|
|
if ($this->io->isDebug()) {
|
|
if ($this->io->isDebug()) {
|
|
@@ -126,7 +126,7 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
|
break;
|
|
break;
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
- if ($e instanceof \PHPUnit_Framework_Exception) {
|
|
|
|
|
|
+ if ($e instanceof \PHPUnit\Framework\Exception) {
|
|
throw $e;
|
|
throw $e;
|
|
}
|
|
}
|
|
if ($this->io->isDebug()) {
|
|
if ($this->io->isDebug()) {
|
|
@@ -179,7 +179,7 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
|
break;
|
|
break;
|
|
} catch (\Exception $exception) {
|
|
} catch (\Exception $exception) {
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
// rethrow phpunit exceptions to avoid hard to debug bug failures
|
|
- if ($exception instanceof \PHPUnit_Framework_Exception) {
|
|
|
|
|
|
+ if ($exception instanceof \PHPUnit\Framework\Exception) {
|
|
throw $exception;
|
|
throw $exception;
|
|
}
|
|
}
|
|
if ($this->io->isDebug()) {
|
|
if ($this->io->isDebug()) {
|