Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12071

Test suite fails if Fileinfo isn't installed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.0-b3
    • 3.1.0-dev
    • None
    • None
    • PHP 5.5.7

      This is what I get when I try to run the test suite without Fileinfo installed:

      PHP Fatal error:  Call to undefined function phpbb\mimetype\mime_content_type() in /phpbb/phpBB/phpbb/mimetype/content_guesser.php on line 31
      PHP Stack trace:
      PHP   1. {main}() /phpbb/phpBB/vendor/phpunit/phpunit/composer/bin/phpunit:0
      PHP   2. PHPUnit_TextUI_Command::main() /phpbb/phpBB/vendor/phpunit/phpunit/composer/bin/phpunit:63
      PHP   3. PHPUnit_TextUI_Command->run() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:129
      PHP   4. PHPUnit_TextUI_TestRunner->doRun() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
      PHP   5. PHPUnit_Framework_TestSuite->run() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:349
      PHP   6. PHPUnit_Framework_TestSuite->run() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:705
      PHP   7. PHPUnit_Framework_TestSuite->runTest() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
      PHP   8. PHPUnit_Framework_TestCase->run() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
      PHP   9. PHPUnit_Framework_TestResult->run() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
      PHP  10. PHPUnit_Framework_TestCase->runBare() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
      PHP  11. PHPUnit_Framework_TestCase->runTest() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
      PHP  12. ReflectionMethod->invokeArgs() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:983
      PHP  13. phpbb\mimetype\guesser_test->test_content_guesser() /phpbb/phpBB/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:983
      PHP  14. phpbb\mimetype\guesser->guess() /phpbb/tests/mimetype/guesser_test.php:146
      PHP  15. phpbb\mimetype\content_guesser->guess() /phpbb/phpBB/phpbb/mimetype/guesser.php:119
      

            Marc Marc
            JoshyPHP JoshyPHP
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: