mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11700] Move all recent code to namespaces
PHPBB3-11700
This commit is contained in:
@@ -11,9 +11,9 @@ class phpbb_event_dispatcher_test extends phpbb_test_case
|
||||
{
|
||||
public function test_trigger_event()
|
||||
{
|
||||
$dispatcher = new phpbb_event_dispatcher(new phpbb_mock_container_builder());
|
||||
$dispatcher = new \phpbb\event\dispatcher(new phpbb_mock_container_builder());
|
||||
|
||||
$dispatcher->addListener('core.test_event', function (phpbb_event_data $event) {
|
||||
$dispatcher->addListener('core.test_event', function (\phpbb\event\data $event) {
|
||||
$event['foo'] = $event['foo'] . '2';
|
||||
$event['bar'] = $event['bar'] . '2';
|
||||
});
|
||||
|
Reference in New Issue
Block a user