Start writing unit tests

This commit is contained in:
Brabli
2022-07-24 17:13:11 +01:00
parent b5b51132f3
commit a0522a6700
6 changed files with 180 additions and 5 deletions

32
tests/AppKernel.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Pcm\IconBundle\Tests;
use Pcm\IconBundle\PcmIconBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
/**
* @return array
*/
public function registerBundles(): array
{
return [
new FrameworkBundle(),
new PcmIconBundle()
];
}
/**
* @param LoaderInterface $loader
*/
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__.'/services_'.$this->getEnvironment().'.yml');
}
}