mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11174] Delete copy pasting.
PHPBB3-11174
This commit is contained in:
parent
3ed4fc437e
commit
04480ec4ae
2 changed files with 0 additions and 28 deletions
|
@ -149,18 +149,4 @@ class phpbb_search_mysql_test extends phpbb_database_test_case
|
||||||
}
|
}
|
||||||
$this->assert_array_content_equals($common, $this->search->get_common_words());
|
$this->assert_array_content_equals($common, $this->search->get_common_words());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function assert_array_content_equals($one, $two)
|
|
||||||
{
|
|
||||||
if (sizeof(array_diff($one, $two)) || sizeof(array_diff($two, $one)))
|
|
||||||
{
|
|
||||||
// get a nice error message
|
|
||||||
$this->assertEquals($one, $two);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// increase assertion count
|
|
||||||
$this->assertTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,18 +138,4 @@ class phpbb_search_postgres_test extends phpbb_database_test_case
|
||||||
}
|
}
|
||||||
$this->assert_array_content_equals($common, $this->search->get_common_words());
|
$this->assert_array_content_equals($common, $this->search->get_common_words());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function assert_array_content_equals($one, $two)
|
|
||||||
{
|
|
||||||
if (sizeof(array_diff($one, $two)) || sizeof(array_diff($two, $one)))
|
|
||||||
{
|
|
||||||
// get a nice error message
|
|
||||||
$this->assertEquals($one, $two);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// increase assertion count
|
|
||||||
$this->assertTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue