@@ -71,7 +71,7 @@ public static function simpleNonAnnotationProvider(): array
71
71
public function testAnnotationNodeFromLinesIterator (
72
72
string $ input ,
73
73
AnnotationListNode $ node ,
74
- string |null $ nextLine = null ,
74
+ string |null $ remaining = null ,
75
75
bool $ nextLiteral = false ,
76
76
): void {
77
77
$ blockParser = $ this ->createContext ($ input );
@@ -83,7 +83,7 @@ public function testAnnotationNodeFromLinesIterator(
83
83
$ result ,
84
84
);
85
85
86
- self ::assertSame ($ nextLine , $ blockParser ->getDocumentIterator ()->getNextLine ());
86
+ self ::assertSame ($ remaining , $ blockParser ->getDocumentIterator ()->getNextLine ());
87
87
self ::assertSame ($ nextLiteral , $ blockParser ->getDocumentParserContext ()->nextIndentedBlockShouldBeALiteralBlock );
88
88
}
89
89
@@ -93,27 +93,27 @@ public static function annotationProvider(): array
93
93
return [
94
94
'single line citation ' => [
95
95
'input ' => '.. [name] Some Citation ' ,
96
- 'output ' => new AnnotationListNode ([new CitationNode ([InlineCompoundNode::getPlainTextInlineNode ('Some Citation ' )], 'name ' )], 'citation-list ' ),
96
+ 'node ' => new AnnotationListNode ([new CitationNode ([InlineCompoundNode::getPlainTextInlineNode ('Some Citation ' )], 'name ' )], 'citation-list ' ),
97
97
],
98
98
'single line Anonymous numbered footnote ' => [
99
99
'input ' => '.. [#] Anonymous numbered footnote ' ,
100
- 'output ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Anonymous numbered footnote ' )], '# ' , 0 )], 'footer-list ' ),
100
+ 'node ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Anonymous numbered footnote ' )], '# ' , 0 )], 'footer-list ' ),
101
101
],
102
102
'single line Numbered footnote ' => [
103
103
'input ' => '.. [42] Numbered footnote ' ,
104
- 'output ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Numbered footnote ' )], '' , 42 )], 'footer-list ' ),
104
+ 'node ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Numbered footnote ' )], '' , 42 )], 'footer-list ' ),
105
105
],
106
106
'single line named footnote ' => [
107
107
'input ' => '.. [#somename] Named footnote ' ,
108
- 'output ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Named footnote ' )], '#somename ' , 0 )], 'footer-list ' ),
108
+ 'node ' => new AnnotationListNode ([new FootnoteNode ([InlineCompoundNode::getPlainTextInlineNode ('Named footnote ' )], '#somename ' , 0 )], 'footer-list ' ),
109
109
],
110
110
'multi line citation ' => [
111
111
'input ' => <<<'RST'
112
112
.. [name] some multiline
113
113
annotation
114
114
RST
115
115
,
116
- 'output ' => new AnnotationListNode ([
116
+ 'node ' => new AnnotationListNode ([
117
117
new CitationNode (
118
118
[
119
119
InlineCompoundNode::getPlainTextInlineNode (
@@ -136,7 +136,7 @@ public static function annotationProvider(): array
136
136
This is a new paragraph
137
137
RST
138
138
,
139
- 'output ' => new AnnotationListNode ([
139
+ 'node ' => new AnnotationListNode ([
140
140
new CitationNode (
141
141
[
142
142
InlineCompoundNode::getPlainTextInlineNode (
@@ -159,7 +159,7 @@ public static function annotationProvider(): array
159
159
This is a new paragraph
160
160
RST
161
161
,
162
- 'output ' => new AnnotationListNode ([
162
+ 'node ' => new AnnotationListNode ([
163
163
new FootnoteNode (
164
164
[
165
165
InlineCompoundNode::getPlainTextInlineNode (
@@ -183,7 +183,7 @@ public static function annotationProvider(): array
183
183
This is a new paragraph
184
184
RST
185
185
,
186
- 'output ' => new AnnotationListNode ([
186
+ 'node ' => new AnnotationListNode ([
187
187
new FootnoteNode (
188
188
[
189
189
InlineCompoundNode::getPlainTextInlineNode (
@@ -208,7 +208,7 @@ public static function annotationProvider(): array
208
208
This is a new paragraph
209
209
RST
210
210
,
211
- 'output ' => new AnnotationListNode ([
211
+ 'node ' => new AnnotationListNode ([
212
212
new FootnoteNode (
213
213
[
214
214
InlineCompoundNode::getPlainTextInlineNode ('Footnote 1 ' ),
0 commit comments