From e8a6fee7434d6dab6a5f84c04b934ab41f797efd Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Mon, 9 Jun 2014 15:15:42 +0530 Subject: [PATCH] [ticket/12514] Move requires to the top of the files PHPBB3-12514 --- tests/profilefields/type_dropdown_test.php | 10 +++++----- tests/profilefields/type_string_test.php | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/profilefields/type_dropdown_test.php b/tests/profilefields/type_dropdown_test.php index 0e1fb101b7..d71ee78497 100644 --- a/tests/profilefields/type_dropdown_test.php +++ b/tests/profilefields/type_dropdown_test.php @@ -6,6 +6,10 @@ * */ +require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; +require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php'; +require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php'; + class phpbb_profilefield_type_dropdown_test extends phpbb_test_case { protected $cp; @@ -20,11 +24,7 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case */ public function setUp() { - global $request, $user, $cache, $db, $table_prefix; - - require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; - require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php'; - require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php'; + global $request, $user, $cache, $db, $table_prefix;Ω $user = $this->getMock('\phpbb\user'); $cache = new phpbb_mock_cache; diff --git a/tests/profilefields/type_string_test.php b/tests/profilefields/type_string_test.php index 869f20b94f..f1423d59d9 100644 --- a/tests/profilefields/type_string_test.php +++ b/tests/profilefields/type_string_test.php @@ -6,6 +6,10 @@ * */ +require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; +require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php'; +require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php'; + class phpbb_profilefield_type_string_test extends phpbb_test_case { protected $cp; @@ -21,10 +25,6 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case { global $request, $user, $cache; - require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php'; - require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php'; - require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php'; - $user = $this->getMock('\phpbb\user'); $cache = new phpbb_mock_cache; $user->expects($this->any())