Skip to content

Commit

Permalink
Add another test for overzealous stripping of whitespace in folded st…
Browse files Browse the repository at this point in the history
…rings.
  • Loading branch information
yunosh committed Mar 20, 2017
1 parent b2e3dda commit 58b9598
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/Yaml/test/Horde/Yaml/LoaderTest.php
Expand Up @@ -795,6 +795,8 @@ public function testUnfolding()
$parsed = Horde_Yaml::loadFile($this->fixture('basic'));
$expected = "Line 1 Line 2\n";
$this->assertEquals($expected, $parsed['foldedStringTest']);
$expected = "The Horde Application Framework is a flexible, modular, general-purpose web application framework written in PHP. It provides an extensive array of components that are targeted at the common problems and tasks involved in developing modern web applications.\n";
$this->assertEquals($expected, $parsed['description']);
}

public function testUnliteralizing()
Expand Down
5 changes: 5 additions & 0 deletions framework/Yaml/test/Horde/Yaml/fixtures/basic.yml
Expand Up @@ -16,3 +16,8 @@ literalStringTest: |
foldedStringTest: >
Line 1
Line 2
description: >
The Horde Application Framework is a flexible, modular, general-purpose web
application framework written in PHP. It provides an extensive array of
components that are targeted at the common problems and tasks involved in
developing modern web applications.

0 comments on commit 58b9598

Please sign in to comment.