for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yiisoft\Yii\Web\Tests\Middleware\Mock;
use Yiisoft\Yii\Web\ErrorHandler\ThrowableRenderer;
class MockThrowableRenderer extends ThrowableRenderer
{
/**
* @var string
*/
private $response;
public function __construct(string $response)
$this->response = $response;
}
public function render(\Throwable $t): string
return $this->response;
public function renderVerbose(\Throwable $t): string