File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 99
1010namespace SymfonyDocsBuilder \Tests ;
1111
12+ use Doctrine \RST \Builder ;
1213use Doctrine \RST \Configuration ;
1314use Doctrine \RST \Parser ;
1415use Gajus \Dindent \Indenter ;
@@ -90,9 +91,10 @@ public function testParseUnitBlock(string $blockName)
9091 $ configuration = new Configuration ();
9192 $ configuration ->setCustomTemplateDirs ([__DIR__ .'/Templates ' ]);
9293
93- $ parser = new Parser (
94- KernelFactory::createKernel ($ this ->createBuildConfig (sprintf ('%s/fixtures/source/blocks ' , __DIR__ )))
95- );
94+ $ kernel = KernelFactory::createKernel ($ this ->createBuildConfig (sprintf ('%s/fixtures/source/blocks ' , __DIR__ )));
95+ // necessary because this initializes some listeners on the kernel
96+ $ builder = new Builder ($ kernel );
97+ $ parser = new Parser ($ kernel );
9698
9799 $ sourceFile = sprintf ('%s/fixtures/source/blocks/%s.rst ' , __DIR__ , $ blockName );
98100
You can’t perform that action at this time.
0 commit comments