This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/HttpKernel/KernelTest.php

51 lines
1.1 KiB
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\HttpKernel;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\DependencyInjection\Loader\LoaderInterface;
class KernelTest extends \PHPUnit_Framework_TestCase
{
public function testGetSafeName()
{
$kernel = new KernelForTest('dev', true, '-foo-');
$this->assertEquals('foo', $kernel->getSafeName());
}
}
class KernelForTest extends Kernel
{
public function __construct($environment, $debug, $name)
{
parent::__construct($environment, $debug);
$this->name = $name;
}
public function registerRootDir()
{
}
public function registerBundles()
{
}
public function registerBundleDirs()
{
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
}
}