22
33namespace Tests \AymDev \CommonMarkBundle \DependencyInjection ;
44
5- use Aymdev \CommonmarkBundle \DependencyInjection \AymdevCommonMarkExtension ;
5+ use Aymdev \CommonmarkBundle \DependencyInjection \AymdevCommonmarkExtension ;
66use Aymdev \CommonmarkBundle \DependencyInjection \Compiler \ConvertersPass ;
77use League \CommonMark \Environment \Environment ;
88use League \CommonMark \MarkdownConverter ;
@@ -14,10 +14,10 @@ class AymDevCommonmarkExtensionTest extends TestCase
1414 /**
1515 * Asserts that the converters configuration is saved as a container parameter
1616 */
17- public function testDefaultConfiguration ()
17+ public function testDefaultConfiguration (): void
1818 {
1919 $ container = new ContainerBuilder ();
20- $ extension = new AymdevCommonMarkExtension ();
20+ $ extension = new AymdevCommonmarkExtension ();
2121
2222 $ extension ->load ([], $ container );
2323 self ::assertNotNull ($ container ->getParameter (ConvertersPass::PARAMETER_CONVERTERS ));
@@ -26,24 +26,27 @@ public function testDefaultConfiguration()
2626 /**
2727 * Asserts the default services are correctly defined
2828 */
29- public function testDefaultServicesRegistration ()
29+ public function testDefaultServicesRegistration (): void
3030 {
3131 $ container = new ContainerBuilder ();
32- $ extension = new AymdevCommonMarkExtension ();
32+ $ extension = new AymdevCommonmarkExtension ();
3333
3434 $ extension ->load ([], $ container );
3535
3636 // "empty" Environment
37+ /** @var Environment $emptyEnvironment */
3738 $ emptyEnvironment = $ container ->get ('aymdev_commonmark.environment.empty ' );
3839 self ::assertInstanceOf (Environment::class, $ emptyEnvironment );
3940 self ::assertCount (0 , $ emptyEnvironment ->getExtensions ());
4041
4142 // CommonMark Environment
43+ /** @var Environment $commonMarkEnvironment */
4244 $ commonMarkEnvironment = $ container ->get ('aymdev_commonmark.environment.commonmark ' );
4345 self ::assertInstanceOf (Environment::class, $ commonMarkEnvironment );
4446 self ::assertNotCount (0 , $ commonMarkEnvironment ->getExtensions ());
4547
4648 // GitHub Environment
49+ /** @var Environment $githubEnvironment */
4750 $ githubEnvironment = $ container ->get ('aymdev_commonmark.environment.github ' );
4851 self ::assertInstanceOf (Environment::class, $ githubEnvironment );
4952 self ::assertNotCount (0 , $ githubEnvironment ->getExtensions ());
0 commit comments