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

Functional tests do not work with a read-only source tree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • 3.1.3-RC1
    • 3.1.0-dev
    • None

      Running functional tests on a read-only tree produces:

      athena% PHPBB_FUNCTIONAL_URL=http://localhost/boards/y1/ 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_put_contents(phpBB/config.php): failed to open stream: Permission denied in /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php on line 124
       
      Warning: copy(phpBB/config.php): failed to open stream: No such file or directory in /home/pie/apps/phpbb/tests/test_framework/phpbb_functional_test_case.php on line 128
      PHPUnit @package_version@ by Sebastian Bergmann.
       
      Configuration read from /home/pie/apps/phpbb/phpunit.xml.functional
       
      FF
       
      Time: 3 seconds, Memory: 24.75Mb
       
      There were 2 failures:
       
      1) phpbb_functional_browse_test::test_index
      Failed asserting that 0 is greater than 0.
       
      /home/pie/apps/phpbb/tests/functional/browse_test.php:18
      /home/pie/apps/git-phpunit-bundle/phpunit.php:44
       
      2) phpbb_functional_browse_test::test_viewforum
      Failed asserting that 0 is greater than 0.
       
      /home/pie/apps/phpbb/tests/functional/browse_test.php:24
      /home/pie/apps/git-phpunit-bundle/phpunit.php:44
       
      FAILURES!
      Tests: 2, Assertions: 2, Failures: 2.
      

      The url I gave corresponds to an entirely separate copy of phpbb, and the account which runs the tests happens to have write access there (that tree is world-writable).

      I should be able to specify the filesystem path to the board I want to test.

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

              Created:
              Updated:
              Resolved: