mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/controller] Reword comment for clarification
PHPBB3-10864
This commit is contained in:
parent
e516680859
commit
230897723c
1 changed files with 3 additions and 4 deletions
|
@ -43,9 +43,8 @@ class phpbb_controller_test extends phpbb_test_case
|
||||||
public function test_controller_resolver()
|
public function test_controller_resolver()
|
||||||
{
|
{
|
||||||
$container = new ContainerBuilder();
|
$container = new ContainerBuilder();
|
||||||
// For some reason, I cannot get it to load more than one services
|
// YamlFileLoader only uses one path at a time, so we need to loop
|
||||||
// file at a time, even when givein multiple paths
|
// through all of the ones we are using.
|
||||||
// So instead, I am looping through all of the paths
|
|
||||||
foreach (array(__DIR__.'/config', __DIR__.'/ext/foo/config') as $path)
|
foreach (array(__DIR__.'/config', __DIR__.'/ext/foo/config') as $path)
|
||||||
{
|
{
|
||||||
$loader = new YamlFileLoader($container, new FileLocator($path));
|
$loader = new YamlFileLoader($container, new FileLocator($path));
|
||||||
|
@ -53,7 +52,7 @@ class phpbb_controller_test extends phpbb_test_case
|
||||||
}
|
}
|
||||||
|
|
||||||
// Autoloading classes within the tests folder does not work
|
// Autoloading classes within the tests folder does not work
|
||||||
// so I'll include them manually
|
// so I'll include them manually.
|
||||||
if (!class_exists('phpbb_ext_foo_controller'))
|
if (!class_exists('phpbb_ext_foo_controller'))
|
||||||
{
|
{
|
||||||
include(__DIR__.'/ext/foo/controller.php');
|
include(__DIR__.'/ext/foo/controller.php');
|
||||||
|
|
Loading…
Add table
Reference in a new issue