Completed
Push — master ( ba8ed9...770316 )
by Jeroen
06:11
created

KunstmaanSiteMapExtensionTest.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\SitemapBundle\Tests\DependencyInjection;
4
5
use Kunstmaan\SitemapBundle\DependencyInjection\KunstmaanSitemapExtension;
6
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
7
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
8
9
/**
10
 * Class KunstmaanSiteMapExtensionTest
11
 */
12 View Code Duplication
class KunstmaanSiteMapExtensionTest extends AbstractExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
0 ignored issues
show
Consider making the return type a bit more specific; maybe use KunstmaanSitemapExtension[].

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...
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanSitemapExtension()];
20
    }
21
22
    public function testCorrectParametersHaveBeenSet()
23
    {
24
        $this->container->setParameter('empty_extension', true);
25
        $this->load();
26
27
        $this->assertContainerBuilderHasParameter('empty_extension', true);
28
    }
29
}
30