[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 = new phpbb_mock_container_builder();
$phpbb_container->set('auth.provider_collection', array( $phpbb_container->set('auth.provider_collection', array(
'auth.provider.acp_board_valid' => new phpbb_auth_provider_acp_board_valid, '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_invalid' => new phpbb\auth\provider\acp\board_invalid,
)); ));
$this->acp_board = new acp_board(); $this->acp_board = new acp_board();

View file

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

View file

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