aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-05-04 10:11:28 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-05-04 10:11:28 +0200
commit232f71dae43df9794184961431aca81d0e4652da (patch)
treebf49de5e5e66ad37d552d2fda7781fc92f3f4721
parentb3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8 (diff)
downloadforums-232f71dae43df9794184961431aca81d0e4652da.tar
forums-232f71dae43df9794184961431aca81d0e4652da.tar.gz
forums-232f71dae43df9794184961431aca81d0e4652da.tar.bz2
forums-232f71dae43df9794184961431aca81d0e4652da.tar.xz
forums-232f71dae43df9794184961431aca81d0e4652da.zip
[ticket/13782] Rename null log to dummy for PHP7 compatibility
PHPBB3-13782
-rw-r--r--phpBB/phpbb/log/dummy.php (renamed from phpBB/phpbb/log/null.php)4
-rw-r--r--tests/console/cache/purge_test.php2
-rw-r--r--tests/notification/group_request_test.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/log/null.php b/phpBB/phpbb/log/dummy.php
index baa78895ea..5c2d145e15 100644
--- a/phpBB/phpbb/log/null.php
+++ b/phpBB/phpbb/log/dummy.php
@@ -14,9 +14,9 @@
namespace phpbb\log;
/**
-* Null logger
+* Dummy logger
*/
-class null implements log_interface
+class dummy implements log_interface
{
/**
* {@inheritdoc}
diff --git a/tests/console/cache/purge_test.php b/tests/console/cache/purge_test.php
index 172fb0ecf3..6c92660580 100644
--- a/tests/console/cache/purge_test.php
+++ b/tests/console/cache/purge_test.php
@@ -91,7 +91,7 @@ class phpbb_console_command_cache_purge_test extends phpbb_test_case
public function get_command_tester()
{
$application = new Application();
- $application->add(new purge($this->user, $this->cache, $this->db, $this->getMock('\phpbb\auth\auth'), new \phpbb\log\null(), $this->config));
+ $application->add(new purge($this->user, $this->cache, $this->db, $this->getMock('\phpbb\auth\auth'), new \phpbb\log\dummy(), $this->config));
$command = $application->find('cache:purge');
$this->command_name = $command->getName();
diff --git a/tests/notification/group_request_test.php b/tests/notification/group_request_test.php
index 6a56a38c45..a24808fbbd 100644
--- a/tests/notification/group_request_test.php
+++ b/tests/notification/group_request_test.php
@@ -50,7 +50,7 @@ class phpbb_notification_group_request_test extends phpbb_tests_notification_bas
$this->cache->get_driver()
));
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
- $phpbb_log = new \phpbb\log\null();
+ $phpbb_log = new \phpbb\log\dummy();
$this->get_test_case_helpers()->set_s9e_services();
// Now on to the actual test