Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67e40af

Browse files
committed
Split test
1 parent6cc3241 commit67e40af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎src/Symfony/Component/Yaml/Tests/YamlTest.php‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,21 @@ public function testParseWithMultilineQuotes()
3939
YAML;
4040

4141
$this->assertSame(['foo' => ['bar' =>"baz\n",'baz' =>"Lorem\nipsum",'foobar' =>'foobar']], Yaml::parse($yaml));
42+
}
4243

43-
$yamlInvalid =<<<YAML
44+
publicfunctiontestParseWithMultilineQuotesExpectException()
45+
{
46+
$yaml =<<<YAML
4447
foo:
4548
bar: 'baz
4649
4750
'
4851
'
49-
baz: 'Lorem
50-
51-
ipsum'
52-
foobar: 'foobar'
5352
YAML;
5453

5554
$this->expectException(ParseException::class);
5655
$this->expectExceptionMessage('Unable to parse at line 5 (near "\'").');
57-
Yaml::parse($yamlInvalid);
56+
Yaml::parse($yaml);
5857
}
5958

6059
publicfunctiontestZeroIndentationThrowsException()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp