@@ -146,7 +146,7 @@ public function testTabsAsIndentationInYaml(string $given, string $expectedMessa
146
146
$ this ->parser ->parse ($ given );
147
147
}
148
148
149
- public function invalidIndentation (): array
149
+ public static function invalidIndentation (): array
150
150
{
151
151
return [
152
152
[
@@ -191,7 +191,7 @@ public function testValidTokenSeparation(string $given, array $expected)
191
191
$ this ->assertSameData ($ expected , $ actual );
192
192
}
193
193
194
- public function validTokenSeparators (): array
194
+ public static function validTokenSeparators (): array
195
195
{
196
196
return [
197
197
[
@@ -224,7 +224,7 @@ public function testEndOfTheDocumentMarker()
224
224
$ this ->assertEquals ('foo ' , $ this ->parser ->parse ($ yaml ));
225
225
}
226
226
227
- public function getBlockChompingTests ()
227
+ public static function getBlockChompingTests ()
228
228
{
229
229
$ tests = [];
230
230
@@ -588,7 +588,7 @@ public function testObjectForMap($yaml, $expected)
588
588
$ this ->assertSameData ($ expected , $ this ->parser ->parse ($ yaml , $ flags ));
589
589
}
590
590
591
- public function getObjectForMapTests ()
591
+ public static function getObjectForMapTests ()
592
592
{
593
593
$ tests = [];
594
594
@@ -835,7 +835,7 @@ public function testNonStringFollowedByCommentEmbeddedInMapping()
835
835
$ this ->assertSame ($ expected , $ this ->parser ->parse ($ yaml ));
836
836
}
837
837
838
- public function getParseExceptionNotAffectedMultiLineStringLastResortParsing ()
838
+ public static function getParseExceptionNotAffectedMultiLineStringLastResortParsing ()
839
839
{
840
840
$ tests = [];
841
841
@@ -977,7 +977,7 @@ public function testParseExceptionOnDuplicate($input, $duplicateKey, $lineNumber
977
977
Yaml::parse ($ input );
978
978
}
979
979
980
- public function getParseExceptionOnDuplicateData ()
980
+ public static function getParseExceptionOnDuplicateData ()
981
981
{
982
982
$ tests = [];
983
983
@@ -1282,7 +1282,7 @@ public function testCommentLikeStringsAreNotStrippedInBlockScalars($yaml, $expec
1282
1282
$ this ->assertSame ($ expectedParserResult , $ this ->parser ->parse ($ yaml ));
1283
1283
}
1284
1284
1285
- public function getCommentLikeStringInScalarBlockData ()
1285
+ public static function getCommentLikeStringInScalarBlockData ()
1286
1286
{
1287
1287
$ tests = [];
1288
1288
@@ -1467,7 +1467,7 @@ public function testParseBinaryData($data)
1467
1467
$ this ->assertSame (['data ' => 'Hello world ' ], $ this ->parser ->parse ($ data ));
1468
1468
}
1469
1469
1470
- public function getBinaryData ()
1470
+ public static function getBinaryData ()
1471
1471
{
1472
1472
return [
1473
1473
'enclosed with double quotes ' => ['data: !!binary "SGVsbG8gd29ybGQ=" ' ],
@@ -1499,7 +1499,7 @@ public function testParseInvalidBinaryData($data, $expectedMessage)
1499
1499
$ this ->parser ->parse ($ data );
1500
1500
}
1501
1501
1502
- public function getInvalidBinaryData ()
1502
+ public static function getInvalidBinaryData ()
1503
1503
{
1504
1504
return [
1505
1505
'length not a multiple of four ' => ['data: !!binary "SGVsbG8d29ybGQ=" ' , '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/ ' ],
@@ -1565,7 +1565,7 @@ public function testParserThrowsExceptionWithCorrectLineNumber($lineNumber, $yam
1565
1565
$ this ->parser ->parse ($ yaml );
1566
1566
}
1567
1567
1568
- public function parserThrowsExceptionWithCorrectLineNumberProvider ()
1568
+ public static function parserThrowsExceptionWithCorrectLineNumberProvider ()
1569
1569
{
1570
1570
return [
1571
1571
[
@@ -1722,7 +1722,7 @@ public function testParseQuotedStringContainingEscapedQuotationCharacters(string
1722
1722
$ this ->assertSame ($ expected , $ this ->parser ->parse ($ yaml ));
1723
1723
}
1724
1724
1725
- public function escapedQuotationCharactersInQuotedStrings ()
1725
+ public static function escapedQuotationCharactersInQuotedStrings ()
1726
1726
{
1727
1727
return [
1728
1728
'single quoted string ' => [
@@ -1780,7 +1780,7 @@ public function testParseMultiLineMappingValue($yaml, $expected, $parseError)
1780
1780
$ this ->assertSame ($ expected , $ this ->parser ->parse ($ yaml ));
1781
1781
}
1782
1782
1783
- public function multiLineDataProvider ()
1783
+ public static function multiLineDataProvider ()
1784
1784
{
1785
1785
$ tests = [];
1786
1786
@@ -1847,7 +1847,7 @@ public function testInlineNotationSpanningMultipleLines($expected, string $yaml)
1847
1847
$ this ->assertSame ($ expected , $ this ->parser ->parse ($ yaml ));
1848
1848
}
1849
1849
1850
- public function inlineNotationSpanningMultipleLinesProvider (): array
1850
+ public static function inlineNotationSpanningMultipleLinesProvider (): array
1851
1851
{
1852
1852
return [
1853
1853
'mapping ' => [
@@ -2236,7 +2236,7 @@ public function testCustomTagSupport($expected, $yaml)
2236
2236
$ this ->assertSameData ($ expected , $ this ->parser ->parse ($ yaml , Yaml::PARSE_CUSTOM_TAGS ));
2237
2237
}
2238
2238
2239
- public function taggedValuesProvider ()
2239
+ public static function taggedValuesProvider ()
2240
2240
{
2241
2241
return [
2242
2242
'scalars ' => [
@@ -2671,7 +2671,7 @@ public function testDetectCircularReferences($yaml)
2671
2671
$ this ->parser ->parse ($ yaml , Yaml::PARSE_CUSTOM_TAGS );
2672
2672
}
2673
2673
2674
- public function circularReferenceProvider ()
2674
+ public static function circularReferenceProvider ()
2675
2675
{
2676
2676
$ tests = [];
2677
2677
@@ -2711,7 +2711,7 @@ public function testParseIndentedMappings($yaml, $expected)
2711
2711
$ this ->assertSame ($ expected , $ this ->parser ->parse ($ yaml ));
2712
2712
}
2713
2713
2714
- public function indentedMappingData ()
2714
+ public static function indentedMappingData ()
2715
2715
{
2716
2716
$ tests = [];
2717
2717
0 commit comments