Fix another endlines problems with windows

pull/702/head
fadrian06 3 days ago
parent 76aaf5e274
commit 8b5118b791

@ -102,9 +102,13 @@ class ViewTest extends TestCase
$this->view->set('name', 'Bob'); $this->view->set('name', 'Bob');
$this->view->extension = '.html'; $this->view->extension = '.html';
ob_start();
$this->view->render('world'); $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 public function testGetTemplateAbsolutePath(): void

Loading…
Cancel
Save