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

Fatal error in functional tests when server returns 404

XMLWordPrintable

      athena% PHPBB_FUNCTIONAL_URL=http://localhost/ php -d suhosin.executor.include.whitelist="phar" -d include_path=.:/home/pie/apps/git-phpunit-bundle ~pie/apps/git-phpunit-bundle/phpunit.php   -v --group functional -c phpunit.xml.functional
       
      Warning: file_get_contents(http://localhost/install/index.php?mode=install&sub=install): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
       in /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php on line 149
       
      Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Argument #2 of PHPUnit_Framework_Assert::assertContains() must be a array, iterator or string' in /home/pie/apps/git-phpunit-bundle/PHPUnit/Util/InvalidArgumentHelper.php:69
      Stack trace:
      #0 /home/pie/apps/git-phpunit-bundle/PHPUnit/Framework/Assert.php(137): PHPUnit_Util_InvalidArgumentHelper::factory(2, 'array, iterator...')
      #1 /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php(120): PHPUnit_Framework_Assert::assertContains('Welcome to Inst...', false)
      #2 /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php(56): phpbb_functional_test_case->install_board()
      #3 /home/pie/apps/git-phpunit-bundle/PHPUnit/Framework/TestSuite.php(554): phpbb_functional_test_case->__construct()
      #4 /home/pie/apps/git-phpunit-bundle/PHPUnit/Framework/TestSuite.php(831): PHPUnit_Framework_TestSuite::createTest(Object(ReflectionClass), 'test_index')
      #5 /home/pie/apps/git-phpunit-bundle/PHPUnit/Framework/TestSuite.php(214): PHPUnit_Frame in /home/pie/apps/git-phpunit-bundle/PHPUnit/Util/InvalidArgumentHelper.php on line 69
      

      This should be handled more gracefully.

            Oleg Oleg [X] (Inactive)
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: