We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09da620 commit 4df941fCopy full SHA for 4df941f
src/Codeception/Lib/Connector/Yii2.php
@@ -388,9 +388,9 @@ public function doRequest(object $request): Response
388
389
$content = ob_get_clean();
390
if (empty($content) && !empty($yiiResponse->content) && !isset($yiiResponse->stream)) {
391
- throw new \Exception('No content was sent from Yii application');
+ throw new \RuntimeException('No content was sent from Yii application');
392
} elseif ($content === false) {
393
- throw new \Exception('Failed to get output buffer');
+ throw new \RuntimeException('Failed to get output buffer');
394
}
395
396
return new Response($content, $yiiResponse->statusCode, $yiiResponse->getHeaders()->toArray());
0 commit comments