Fix testRenderLayout in windows

pull/702/head
fadrian06 2 days ago
parent 8b5118b791
commit a8de8d3914

@ -29,8 +29,12 @@ class RenderTest extends TestCase
public function testRenderLayout(): void
{
$this->app->render('hello', ['name' => 'Bob'], 'content');
ob_start();
$this->app->render('layouts/layout');
$html = ob_get_clean();
$html = str_replace(["\r\n", "\n"], '', $html);
echo $html;
$this->expectOutputString("<body>Hello, Bob!</body>\n");
$this->expectOutputString("<body>Hello, Bob!</body>");
}
}

Loading…
Cancel
Save