123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?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\Foundation;
- use Symfony\Foundation\Kernel;
- 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()
- {
- }
- public function registerRoutes()
- {
- }
- }
|