From 1deada4f7fed44afb7e11e2eb592de6895433ea3 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 29 Jan 2017 01:56:43 -0800 Subject: [PATCH] parser test editor: Fix emitting of !! hooks The first newline was missing so a block like: !! hooks source !! endhooks would turn into: !! hookssource !! endhooks Change-Id: I2a4c5e52050d55fb0c9b4f5d0494eb00e34b233c --- tests/parser/TestFileEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parser/TestFileEditor.php b/tests/parser/TestFileEditor.php index 05b1216fe6..7f646710ed 100644 --- a/tests/parser/TestFileEditor.php +++ b/tests/parser/TestFileEditor.php @@ -125,7 +125,7 @@ class TestFileEditor { $line = $this->lines[$this->pos++]; $heading = $this->getHeading( $line ); $expectedEnd = 'end' . $heading; - $contents = $line; + $contents = "$line\n"; do { $line = $this->lines[$this->pos++]; -- 2.20.1