(Using the Instructions from "Environment for development" in README.md)
After running the Tests, a hook tries to transform and write the contents of build/logs/*.json to an XML report file (tests/Bootstrap.php:80). However, it fails when appending their contents.
Full shell output from running the tests inside the container:
www-data@bf02a6053668:~/html$ vendor/bin/phpunit
PHPUnit 8.5.5 by Sebastian Bergmann and contributors.
Runtime: PHP 7.4.3 with Xdebug 2.9.2
Configuration: /var/www/html/phpunit.xml
..........Terminated
.Terminated
.Terminated
..Terminated
................................................... 65 / 68 ( 95%)
... 68 / 68 (100%)PHP Fatal error: Uncaught TypeError: Argument 1 passed to SebastianBergmann\CodeCoverage\CodeCoverage::append() must be of the type array, null given, called in /var/www/html/tests/Bootstrap.php on line 80 and defined in /var/www/html/vendor/phpunit/php-code-coverage/src/CodeCoverage.php:288
Stack trace:
#0 /var/www/html/tests/Bootstrap.php(80): SebastianBergmann\CodeCoverage\CodeCoverage->append()
#1 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(625): acdhOeaw\acdhRepo\tests\Bootstrap->executeAfterLastTest()
#2 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(204): PHPUnit\TextUI\TestRunner->doRun()
#3 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(163): PHPUnit\TextUI\Command->run()
#4 /var/www/html/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#5 {main}
thrown in /var/www/html/vendor/phpunit/php-code-coverage/src/CodeCoverage.php on line 288
(Using the Instructions from "Environment for development" in README.md)
After running the Tests, a hook tries to transform and write the contents of
build/logs/*.json
to an XML report file (tests/Bootstrap.php:80
). However, it fails when appending their contents.Full shell output from running the tests inside the container:
any help is much appreciated!