Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.2 Fatal Error running PHPUnit with Dataflows #796

Open
aspark21 opened this issue Jun 30, 2023 · 0 comments
Open

4.2 Fatal Error running PHPUnit with Dataflows #796

aspark21 opened this issue Jun 30, 2023 · 0 comments

Comments

@aspark21
Copy link

Moodle MOODLE_402_STABLE
Dataflows MOODLE_35_STABLE

See https://tracker.moodle.org/browse/MDL-78049 for context

Moodle 4.2.1+ (Build: 20230629), 3a64f9ceffc578a5d9f364916869ac4cf799802a
    Php: 8.0.29, mysqli: 8.0.33, OS: Linux 5.15.73-45.135.amzn2022.x86_64 x86_64
  
    Fatal error: Uncaught coding_exception: Coding error detected, it must be fixed by a programmer: When including this file for a unit test, the test must be run in an isolated process. See the PHPUnit @runInSeparateProcess and @runTestsInSeparateProcesses annotations. in /var/www/html/lib/setuplib.php:2204
    Stack trace:
    #0 /var/www/html/lib/externallib.php(35): require_phpunit_isolation()
    #1 /var/www/html/admin/tool/dataflows/tests/tool_dataflows_web_service_flow_test.php(22): require_once('/var/www/html/l...')
    #2 /var/www/html/vendor/phpunit/phpunit/src/Util/FileLoader.php(66): include_once('/var/www/html/a...')
    #3 /var/www/html/vendor/phpunit/phpunit/src/Util/FileLoader.php(49): PHPUnit\Util\FileLoader::load('/var/www/html/a...')
    #4 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(397): PHPUnit\Util\FileLoader::checkAndLoad('/var/www/html/a...')
    #5 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(527): PHPUnit\Framework\TestSuite->addTestFile('/var/www/html/a...')
    #6 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestSuiteMapper.php(67): PHPUnit\Framework\TestSuite->addTestFiles(Array)
    #7 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(391): PHPUnit\TextUI\TestSuiteMapper->map(Object(PHPUnit\TextUI\XmlConfiguration\TestSuiteCollection), '')
    #8 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(112): PHPUnit\TextUI\Command->handleArguments(Array)
    #9 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run(Array, true)
    #10 /var/www/html/vendor/phpunit/phpunit/phpunit(98): PHPUnit\TextUI\Command::main()
    #11 /var/www/html/vendor/bin/phpunit(122): include('/var/www/html/v...')
    #12 {main}
  
    Next PHPUnit\TextUI\RuntimeException: Coding error detected, it must be fixed by a programmer: When including this file for a unit test, the test must be run in an isolated process. See the PHPUnit @runInSeparateProcess and @runTestsInSeparateProcesses annotations. in /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:99
    Stack trace:
    #0 /var/www/html/vendor/phpunit/phpunit/phpunit(98): PHPUnit\TextUI\Command::main()
    #1 /var/www/html/vendor/bin/phpunit(122): include('/var/www/html/v...')
    #2 {main}
      thrown in /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php on line 99
  stdout_lines: <omitted>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant