@@ -277,39 +277,24 @@ public function testParseUnquotedAsteriskFollowedByAComment()
277
277
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
278
278
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
279
279
*/
280
- public function testParseUnquotedScalarStartingWithReservedAtIndicator ( )
280
+ public function testParseUnquotedScalarStartingWithReservedIndicator ( $ indicator )
281
281
{
282
- Inline::parse ('{ foo: @foo } ' );
282
+ Inline::parse (sprintf ( '{ foo: %sfoo } ' , $ indicator ) );
283
283
}
284
284
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 ()
301
286
{
302
- Inline:: parse ( ' { foo: |foo } ' );
287
+ return array ( array ( ' @ ' ), array ( ' ` ' ) );
303
288
}
304
289
305
290
/**
306
291
* @dataProvider getScalarIndicators
307
292
* @expectedException \Symfony\Component\Yaml\Exception\ParseException
308
293
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
309
294
*/
310
- public function testParseUnquotedScalarStartingWithFoldedStyleIndicator ( )
295
+ public function testParseUnquotedScalarStartingWithScalarIndicator ( $ indicator )
311
296
{
312
- Inline::parse ('{ foo: >foo } ' );
297
+ Inline::parse (sprintf ( '{ foo: %sfoo } ' , $ indicator ) );
313
298
}
314
299
315
300
public function getScalarIndicators ()
0 commit comments