1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/16288] PHP 8 compatibility

PHPBB3-16288
This commit is contained in:
rxu
2020-01-01 16:38:34 +07:00
parent dce0441ecf
commit 4ed854c818
21 changed files with 110 additions and 46 deletions

View File

@@ -200,6 +200,9 @@ abstract class phpbb_search_common_test_case extends phpbb_search_test_case
$this->assertEquals($ok, $rv);
if ($ok)
{
// If there are valid keywords, search->split_keywords perfoms array sort
sort($split_words);
// only check criteria if the search is going to be performed
$this->assert_array_content_equals($split_words, $this->search->get_split_words());
}

View File

@@ -195,7 +195,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'foo foo-',
'all',
true,
array(1),
array(1, 1),
array(),
array(),
),
@@ -203,7 +203,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'foo- foo',
'all',
true,
array(1),
array(1, 1),
array(),
array(),
),
@@ -219,7 +219,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'foo-bar-foo',
'all',
true,
array(1, 2),
array(1, 2, 1),
array(),
array(),
),