* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer; use PHPUnit\Framework\TestCase; use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer; class HtmlErrorRendererTest extends TestCase { /** * @dataProvider getRenderData */ public function testRender(\Throwable $exception, HtmlErrorRenderer $errorRenderer, string $expected) { $this->assertStringMatchesFormat($expected, $errorRenderer->render($exception)->getAsString()); } public static function getRenderData(): iterable { $expectedDebug = << %A