@@ -128,11 +128,15 @@ public function testPopulatesExampleWithOutlineTitle(): void
128128 new StepNode ('' , 'I am <name> ' , [], 1 , 'Given ' ),
129129 ];
130130
131- $ table = new ExampleTableNode ([
132- 10 => ['name ' , 'email ' ],
133- 11 => ['Ciaran ' , 'ciaran@example.com ' ],
134- 12 => ['John ' , 'john@example.com ' ],
135- ], 'Examples ' );
131+ $ table = new ExampleTableNode (
132+ [
133+ 10 => ['name ' , 'email ' ],
134+ 11 => ['Ciaran ' , 'ciaran@example.com ' ],
135+ 12 => ['John ' , 'john@example.com ' ],
136+ ],
137+ 'Examples ' ,
138+ ['tagA ' , 'tagB ' ],
139+ );
136140
137141 $ outline = new OutlineNode ('An outline title for <name> ' , [], $ steps , $ table , '' , 1 );
138142
@@ -143,12 +147,14 @@ public function testPopulatesExampleWithOutlineTitle(): void
143147 'getTitle ' => '| Ciaran | ciaran@example.com | ' ,
144148 'getOutlineTitle ' => 'An outline title for <name> ' ,
145149 'getExampleText ' => '| Ciaran | ciaran@example.com | ' ,
150+ 'getTags ' => ['tagA ' , 'tagB ' ],
146151 ],
147152 [
148153 'getName ' => 'An outline title for John #2 ' ,
149154 'getTitle ' => '| John | john@example.com | ' ,
150155 'getOutlineTitle ' => 'An outline title for <name> ' ,
151156 'getExampleText ' => '| John | john@example.com | ' ,
157+ 'getTags ' => ['tagA ' , 'tagB ' ],
152158 ],
153159 ],
154160 array_map (
@@ -158,6 +164,7 @@ static function (ExampleNode $node) {
158164 'getTitle ' => $ node ->getTitle (),
159165 'getOutlineTitle ' => $ node ->getOutlineTitle (),
160166 'getExampleText ' => $ node ->getExampleText (),
167+ 'getTags ' => $ node ->getTags (),
161168 ];
162169 },
163170 $ outline ->getExamples ()
0 commit comments