1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/11700] Get unit tests to run again with namespaces

PHPBB3-11700
This commit is contained in:
Nils Adermann 2013-09-19 18:50:08 +02:00
parent fe36375a36
commit 16fdef4866
4 changed files with 9 additions and 5 deletions

View File

@ -7,7 +7,9 @@
*
*/
class phpbb_auth_provider_acp_board_invalid
namespace phpbb\auth\provider\acp;
class board_invalid
{
}

View File

@ -31,8 +31,8 @@ class phpbb_acp_board_select_auth_method_test extends phpbb_test_case
$phpbb_container = new phpbb_mock_container_builder();
$phpbb_container->set('auth.provider_collection', array(
'auth.provider.acp_board_valid' => new phpbb_auth_provider_acp_board_valid,
'auth.provider.acp_board_invalid' => new phpbb_auth_provider_acp_board_invalid,
'auth.provider.acp_board_valid' => new phpbb\auth\provider\acp\board_valid,
'auth.provider.acp_board_invalid' => new phpbb\auth\provider\acp\board_invalid,
));
$this->acp_board = new acp_board();

View File

@ -1,3 +1,3 @@
services:
core_foo.controller:
class: phpbb_controller_foo
class: phpbb\controller\foo

View File

@ -1,8 +1,10 @@
<?php
namespace phpbb\controller;
use Symfony\Component\HttpFoundation\Response;
class phpbb_controller_foo
class foo
{
/**
* Bar method