From 8b5118b791a06b012d92b300ba58ee079e82cad2 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Mon, 22 Jun 2026 16:48:44 -0400 Subject: [PATCH] Fix another endlines problems with windows --- tests/ViewTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ViewTest.php b/tests/ViewTest.php index 54a0939..e57afd0 100644 --- a/tests/ViewTest.php +++ b/tests/ViewTest.php @@ -102,9 +102,13 @@ class ViewTest extends TestCase $this->view->set('name', 'Bob'); $this->view->extension = '.html'; + ob_start(); $this->view->render('world'); + $html = ob_get_clean(); + $html = str_replace(["\r\n", "\n"], '', $html); + echo $html; - $this->expectOutputString("Hello world, Bob!\n"); + $this->expectOutputString("Hello world, Bob!"); } public function testGetTemplateAbsolutePath(): void