@@ -193,27 +193,42 @@ public function testParseUnquotedAsteriskFollowedByAComment()
193
193
194
194
/**
195
195
* @group legacy
196
- * @dataProvider getReservedIndicators
196
+ * @expectedDeprecation Not quoting the scalar "@foo " starting with "@" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
197
197
* throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
198
198
*/
199
- public function testParseUnquotedScalarStartingWithReservedIndicator ( $ indicator )
199
+ public function testParseUnquotedScalarStartingWithReservedAtIndicator ( )
200
200
{
201
- Inline::parse (sprintf ( '{ foo: %sfoo } ' , $ indicator ) );
201
+ Inline::parse ('{ foo: @foo } ' );
202
202
}
203
203
204
- public function getReservedIndicators ()
204
+ /**
205
+ * @group legacy
206
+ * @expectedDeprecation Not quoting the scalar "`foo " starting with "`" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
207
+ * throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
208
+ */
209
+ public function testParseUnquotedScalarStartingWithReservedBacktickIndicator ()
210
+ {
211
+ Inline::parse ('{ foo: `foo } ' );
212
+ }
213
+
214
+ /**
215
+ * @group legacy
216
+ * @expectedDeprecation Not quoting the scalar "|foo " starting with "|" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
217
+ * throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
218
+ */
219
+ public function testParseUnquotedScalarStartingWithLiteralStyleIndicator ()
205
220
{
206
- return array ( array ( ' @ ' ), array ( ' ` ' ) );
221
+ Inline:: parse ( ' { foo: |foo } ' );
207
222
}
208
223
209
224
/**
210
225
* @group legacy
211
- * @dataProvider getScalarIndicators
226
+ * @expectedDeprecation Not quoting the scalar ">foo " starting with ">" is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.
212
227
* throws \Symfony\Component\Yaml\Exception\ParseException in 3.0
213
228
*/
214
- public function testParseUnquotedScalarStartingWithScalarIndicator ( $ indicator )
229
+ public function testParseUnquotedScalarStartingWithFoldedStyleIndicator ( )
215
230
{
216
- Inline::parse (sprintf ( '{ foo: %sfoo } ' , $ indicator ) );
231
+ Inline::parse ('{ foo: >foo } ' );
217
232
}
218
233
219
234
public function getScalarIndicators ()
0 commit comments