Skip to content

Commit

Permalink
add a test case which confirms del is escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkawata committed Apr 24, 2020
1 parent 37b17a3 commit 48220bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Symfony/Component/Yaml/Tests/YamlTest.php
Expand Up @@ -24,6 +24,12 @@ public function testParseAndDump()
$this->assertEquals($data, $parsed);
}

public function testDelEscaped()
{
$data = "\x7f";
$this->assertEquals(Yaml::dump($data), '"\\x7f"');
}

public function testZeroIndentationThrowsException()
{
$this->expectException('InvalidArgumentException');
Expand Down

0 comments on commit 48220bc

Please sign in to comment.