Lines Matching refs:tests
90 $tests = [];
105 $tests['Literal block chomping strip with single trailing newline'] = [$expected, $yaml];
122 $tests['Literal block chomping strip with multiple trailing newlines'] = [$expected, $yaml];
130 …$tests['Literal block chomping strip with multiple trailing newlines after a 1-liner'] = [$expecte…
144 $tests['Literal block chomping strip without trailing newline'] = [$expected, $yaml];
159 $tests['Literal block chomping clip with single trailing newline'] = [$expected, $yaml];
176 $tests['Literal block chomping clip with multiple trailing newlines'] = [$expected, $yaml];
192 …$tests['Literal block chomping clip with embedded blank line inside unindented collection'] = [$ex…
206 $tests['Literal block chomping clip without trailing newline'] = [$expected, $yaml];
221 $tests['Literal block chomping keep with single trailing newline'] = [$expected, $yaml];
238 $tests['Literal block chomping keep with multiple trailing newlines'] = [$expected, $yaml];
252 $tests['Literal block chomping keep without trailing newline'] = [$expected, $yaml];
267 $tests['Folded block chomping strip with single trailing newline'] = [$expected, $yaml];
284 $tests['Folded block chomping strip with multiple trailing newlines'] = [$expected, $yaml];
298 $tests['Folded block chomping strip without trailing newline'] = [$expected, $yaml];
313 $tests['Folded block chomping clip with single trailing newline'] = [$expected, $yaml];
330 $tests['Folded block chomping clip with multiple trailing newlines'] = [$expected, $yaml];
344 $tests['Folded block chomping clip without trailing newline'] = [$expected, $yaml];
359 $tests['Folded block chomping keep with single trailing newline'] = [$expected, $yaml];
376 $tests['Folded block chomping keep with multiple trailing newlines'] = [$expected, $yaml];
390 $tests['Folded block chomping keep without trailing newline'] = [$expected, $yaml];
392 return $tests;
454 $tests = [];
463 $tests['mapping'] = [$yaml, $expected];
469 $tests['inline-mapping'] = [$yaml, $expected];
475 $tests['object-for-map-is-applied-after-parsing'] = [$yaml, $expected];
488 $tests['nest-map-and-sequence'] = [$yaml, $expected];
499 $tests['numeric-keys'] = [$yaml, $expected];
510 $tests['zero-indexed-numeric-keys'] = [$yaml, $expected];
512 return $tests;
698 $tests = [];
704 $tests['parse error on first line'] = [$yaml];
712 $tests['parse error due to inconsistent indentation'] = [$yaml];
717 $tests['symfony/symfony/issues/22967#issuecomment-322067742'] = [$yaml];
719 return $tests;
847 $tests = [];
852 $tests[] = [$yaml, 'child', 1];
859 $tests[] = [$yaml, 'child', 3];
865 $tests[] = [$yaml, 'parent', 2];
870 $tests[] = [$yaml, 'child_mapping', 1];
879 $tests[] = [$yaml, 'child_mapping', 4];
884 $tests[] = [$yaml, 'child_sequence', 1];
897 $tests[] = [$yaml, 'child_sequence', 6];
899 return $tests;
1150 $tests = [];
1186 $tests[] = [$yaml, $expected];
1231 $tests[] = [$yaml, $expected];
1253 $tests[] = [$yaml, $expected];
1269 $tests[] = [$yaml, $expected];
1271 return $tests;
1578 $tests = [];
1596 $tests[] = [$yaml, $expected, false];
1604 $tests[] = [$yaml, $expected, false];
1612 $tests[] = [$yaml, $expected, false];
1621 $tests[] = [$yaml, $expected, false];
1630 $tests[] = [$yaml, $expected, false];
1632 return $tests;
1800 $tests = [];
1817 $tests[] = [var_export($expected, true), $test['yaml'], $test['test']];
1822 return $tests;
2038 $tests = [];
2047 $tests['sequence'] = [$yaml];
2055 $tests['mapping'] = [$yaml];
2063 $tests['mapping with merge key'] = [$yaml];
2065 return $tests;
2078 $tests = [];
2094 $tests['comment line is first line in indented block'] = [$yaml, $expected];
2111 $tests['mapping value on new line starting with a comment line'] = [$yaml, $expected];
2125 $tests['mapping in sequence starting on a new line'] = [$yaml, $expected];
2137 $tests['blank line at the beginning of an indented mapping value'] = [$yaml, $expected];
2139 return $tests;