Skip to content

Commit 2f557a5

Browse files
Fix bad merge
1 parent 420de14 commit 2f557a5

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

Tests/InlineTest.php

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -277,39 +277,24 @@ public function testParseUnquotedAsteriskFollowedByAComment()
277277
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
278278
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
279279
*/
280-
public function testParseUnquotedScalarStartingWithReservedAtIndicator()
280+
public function testParseUnquotedScalarStartingWithReservedIndicator($indicator)
281281
{
282-
Inline::parse('{ foo: @foo }');
282+
Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
283283
}
284284

285-
/**
286-
* @group legacy
287-
* @expectedDeprecation Not quoting the scalar "`foo " starting with "`" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
288-
* throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
289-
*/
290-
public function testParseUnquotedScalarStartingWithReservedBacktickIndicator()
291-
{
292-
Inline::parse('{ foo: `foo }');
293-
}
294-
295-
/**
296-
* @group legacy
297-
* @expectedDeprecation Not quoting the scalar "|foo " starting with "|" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
298-
* throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
299-
*/
300-
public function testParseUnquotedScalarStartingWithLiteralStyleIndicator()
285+
public function getReservedIndicators()
301286
{
302-
Inline::parse('{ foo: |foo }');
287+
return array(array('@'), array('`'));
303288
}
304289

305290
/**
306291
* @dataProvider getScalarIndicators
307292
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
308293
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
309294
*/
310-
public function testParseUnquotedScalarStartingWithFoldedStyleIndicator()
295+
public function testParseUnquotedScalarStartingWithScalarIndicator($indicator)
311296
{
312-
Inline::parse('{ foo: >foo }');
297+
Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
313298
}
314299

315300
public function getScalarIndicators()

0 commit comments

Comments
 (0)