Completed
Pull Request — 5.6 (#2830)
by Jeroen
14:14
created

KunstmaanArticleExtensionTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\ArticleBundle\Tests\DependencyInjection;
4
5
use Kunstmaan\ArticleBundle\DependencyInjection\KunstmaanArticleExtension;
6
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
7
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
8
9 View Code Duplication
class KunstmaanArticleExtensionTest extends AbstractExtensionTestCase
10
{
11
    /**
12
     * @return ExtensionInterface[]
0 ignored issues
show
Consider making the return type a bit more specific; maybe use KunstmaanArticleExtension[].

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
13
     */
14
    protected function getContainerExtensions()
15
    {
16
        return [new KunstmaanArticleExtension()];
17
    }
18
19
    public function testCorrectParametersHaveBeenSet()
20
    {
21
        $this->container->setParameter('empty_extension', true);
22
        $this->load();
23
24
        $this->assertContainerBuilderHasParameter('empty_extension', true);
25
    }
26
}
27