/** * @runInSeparateProcess */ public function testDefaultExceptionHandler() { $app = new Application(); $app->getServiceProvider()->getRouter()->setRoute('index', ['GET'], '/', []); $app->setConfig('display_exceptions', false); $app->run(); $body = "<h1>An error occurred</h1><h2>Internal Server Error</h2>"; $result = sprintf("<html><head><title>%s</title><style>body {font-family: Helvetica,Arial,sans-serif;font-size: 20px;line-height: 28px;padding:20px;}</style></head><body>%s</body></html>", 'Tlumx application: Internal Server Error', $body); $this->expectOutputString($result); }