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:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_ext_testext_cron_dummy_task extends phpbb_cron_task_base
|
||||
class phpbb_ext_testext_cron_dummy_task extends \phpbb\cron\task\base
|
||||
{
|
||||
static public $was_run = 0;
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_cron_task_core_dummy_task extends phpbb_cron_task_base
|
||||
class phpbb_cron_task_core_dummy_task extends \phpbb\cron\task\base
|
||||
{
|
||||
static public $was_run = 0;
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_cron_task_core_second_dummy_task extends phpbb_cron_task_base
|
||||
class phpbb_cron_task_core_second_dummy_task extends \phpbb\cron\task\base
|
||||
{
|
||||
static public $was_run = 0;
|
||||
|
||||
|
@@ -29,7 +29,7 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
|
||||
public function test_manager_finds_shipped_task_by_name()
|
||||
{
|
||||
$task = $this->manager->find_task($this->task_name);
|
||||
$this->assertInstanceOf('phpbb_cron_task_wrapper', $task);
|
||||
$this->assertInstanceOf('\phpbb\cron\task\wrapper', $task);
|
||||
$this->assertEquals($this->task_name, $task->get_name());
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
|
||||
public function test_manager_finds_one_ready_task()
|
||||
{
|
||||
$task = $this->manager->find_one_ready_task();
|
||||
$this->assertInstanceOf('phpbb_cron_task_wrapper', $task);
|
||||
$this->assertInstanceOf('\phpbb\cron\task\wrapper', $task);
|
||||
}
|
||||
|
||||
public function test_manager_finds_only_ready_tasks()
|
||||
@@ -71,6 +71,6 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
||||
return new phpbb_cron_manager($tasks, $phpbb_root_path, $phpEx);
|
||||
return new \phpbb\cron\manager($tasks, $phpbb_root_path, $phpEx);
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_not_runnable extends phpbb_cron_task_base
|
||||
class phpbb_cron_task_core_simple_not_runnable extends \phpbb\cron\task\base
|
||||
{
|
||||
public function get_name()
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_ready extends phpbb_cron_task_base
|
||||
class phpbb_cron_task_core_simple_ready extends \phpbb\cron\task\base
|
||||
{
|
||||
public function get_name()
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_should_not_run extends phpbb_cron_task_base
|
||||
class phpbb_cron_task_core_simple_should_not_run extends \phpbb\cron\task\base
|
||||
{
|
||||
public function get_name()
|
||||
{
|
||||
|
Reference in New Issue
Block a user