From e52e1124c1de4b7cca045be995493f7195fd6cd8 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 24 Jul 2017 23:36:10 +0300 Subject: [PATCH] Fixed ViewTest to use OS-dependent newline under Windows --- tests/framework/web/ViewTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/framework/web/ViewTest.php b/tests/framework/web/ViewTest.php index 9064352..cbc0337 100644 --- a/tests/framework/web/ViewTest.php +++ b/tests/framework/web/ViewTest.php @@ -39,7 +39,7 @@ class ViewTest extends TestCase $view = new View(); $view->registerJsFile('@web/js/somefile.js', ['position' => View::POS_BEGIN]); $html = $view->render('@yiiunit/data/views/layout.php', ['content' => 'content']); - $this->assertContains('' . "\n" . '', $html); + $this->assertContains('' . PHP_EOL . '', $html); $view = new View(); $view->registerJsFile('@web/js/somefile.js', ['position' => View::POS_END]);