Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Foundation] normalized app name for use in a class name
- Loading branch information
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?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() | ||
{ | ||
} | ||
} |