aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/event_dispatcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock/event_dispatcher.php')
-rw-r--r--tests/mock/event_dispatcher.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/tests/mock/event_dispatcher.php b/tests/mock/event_dispatcher.php
index 8887b16163..fa8b4a1036 100644
--- a/tests/mock/event_dispatcher.php
+++ b/tests/mock/event_dispatcher.php
@@ -1,15 +1,28 @@
<?php
/**
*
-* @package testing
-* @copyright (c) 2012 phpBB Group
-* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
*
*/
-class phpbb_mock_event_dispatcher
+class phpbb_mock_event_dispatcher extends \phpbb\event\dispatcher
{
- public function trigger_event($eventName, $data)
+ /**
+ * Constructor.
+ *
+ * Overwrite the constructor to get rid of ContainerInterface param instance
+ */
+ public function __construct()
+ {
+ }
+
+ public function trigger_event($eventName, $data = array())
{
return array();
}