From 95b22819a7c0f6bddee0f6b095f8bf777ef653b6 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 11 Nov 2013 21:59:47 +0100 Subject: [PATCH] [ticket/11912] Use inverted $overload for setting function_exists in tests PHPBB3-11912 --- tests/mimetype/guesser_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mimetype/guesser_test.php b/tests/mimetype/guesser_test.php index a489e68b40..2c1a35544f 100644 --- a/tests/mimetype/guesser_test.php +++ b/tests/mimetype/guesser_test.php @@ -127,7 +127,7 @@ class guesser_test extends \phpbb_test_case */ 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); $this->assertEquals($expected[0], $guesser->guess($this->jpg_file)); $this->assertEquals($expected[1], $guesser->guess($this->jpg_file, $this->jpg_file . '.jpg'));