From: Kunal Mehta Date: Sun, 29 Jan 2017 09:56:43 +0000 (-0800) Subject: parser test editor: Fix emitting of !! hooks X-Git-Tag: 1.31.0-rc.0~4186^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=1deada4f7fed44afb7e11e2eb592de6895433ea3;p=lhc%2Fweb%2Fwiklou.git 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 --- 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++];