mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/11912] Use inverted $overload for setting function_exists in tests
PHPBB3-11912
This commit is contained in:
@@ -127,7 +127,7 @@ class guesser_test extends \phpbb_test_case
|
|||||||
*/
|
*/
|
||||||
public function test_content_guesser($expected, $guessers, $overload = false)
|
public function test_content_guesser($expected, $guessers, $overload = false)
|
||||||
{
|
{
|
||||||
self::$function_exists = ($overload) ? false : true;
|
self::$function_exists = !$overload;
|
||||||
$guesser = new \phpbb\mimetype\guesser($guessers);
|
$guesser = new \phpbb\mimetype\guesser($guessers);
|
||||||
$this->assertEquals($expected[0], $guesser->guess($this->jpg_file));
|
$this->assertEquals($expected[0], $guesser->guess($this->jpg_file));
|
||||||
$this->assertEquals($expected[1], $guesser->guess($this->jpg_file, $this->jpg_file . '.jpg'));
|
$this->assertEquals($expected[1], $guesser->guess($this->jpg_file, $this->jpg_file . '.jpg'));
|
||||||
|
Reference in New Issue
Block a user