mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/13782] Rename null log to dummy for PHP7 compatibility
PHPBB3-13782
This commit is contained in:
parent
b3cc20a575
commit
232f71dae4
3 changed files with 4 additions and 4 deletions
|
@ -14,9 +14,9 @@
|
||||||
namespace phpbb\log;
|
namespace phpbb\log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Null logger
|
* Dummy logger
|
||||||
*/
|
*/
|
||||||
class null implements log_interface
|
class dummy implements log_interface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
2
tests/console/cache/purge_test.php
vendored
2
tests/console/cache/purge_test.php
vendored
|
@ -91,7 +91,7 @@ class phpbb_console_command_cache_purge_test extends phpbb_test_case
|
||||||
public function get_command_tester()
|
public function get_command_tester()
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$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');
|
$command = $application->find('cache:purge');
|
||||||
$this->command_name = $command->getName();
|
$this->command_name = $command->getName();
|
||||||
|
|
|
@ -50,7 +50,7 @@ class phpbb_notification_group_request_test extends phpbb_tests_notification_bas
|
||||||
$this->cache->get_driver()
|
$this->cache->get_driver()
|
||||||
));
|
));
|
||||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
$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();
|
$this->get_test_case_helpers()->set_s9e_services();
|
||||||
|
|
||||||
// Now on to the actual test
|
// Now on to the actual test
|
||||||
|
|
Loading…
Add table
Reference in a new issue