HTML;
$expectedNonDebug = <<<HTML
<!DOCTYPE html>
<html lang="en">
%A<title>An Error Occurred: Internal Server Error</title>
%A<h2>The server returned a "500 Internal Server Error".</h2>%A
HTML;
yield '->render() returns the HTML content WITH stack traces in debug mode' =>
[ new \
RuntimeException('Foo'
),
new HtmlErrorRenderer(true
),
$expectedDebug,
];
yield '->render() returns the HTML content WITHOUT stack traces in non-debug mode' =>
[ new \
RuntimeException('Foo'
),
new HtmlErrorRenderer(false
),
$expectedNonDebug,
];
}}