mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11700] DI container test needs namespaces to work properly
PHPBB3-11700
This commit is contained in:
parent
dc2f4a3663
commit
9a2c29a175
1 changed files with 56 additions and 50 deletions
|
@ -7,6 +7,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
namespace
|
||||
{
|
||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
|
||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_container.php';
|
||||
|
||||
|
@ -51,8 +53,11 @@ class phpbb_di_container_test extends phpbb_test_case
|
|||
$this->assertTrue($container->isFrozen());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class phpbb_db_driver_container_mock extends \phpbb\db\driver\driver
|
||||
namespace phpbb\db\driver
|
||||
{
|
||||
class container_mock extends \phpbb\db\driver\driver
|
||||
{
|
||||
public function sql_connect()
|
||||
{
|
||||
|
@ -70,3 +75,4 @@ class phpbb_db_driver_container_mock extends \phpbb\db\driver\driver
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue