View Issue Details

IDProjectCategoryView StatusLast Update
0032815mantisbttoolspublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032815: Error when executing the complete PHPUnit test suite with AllTests.php
Description

TravisCI logs show the following:

PHP Fatal error: -1 in /home/travis/build/mantisbt/mantisbt/core/error_api.php on line 92
PHP Stack trace:
PHP 1. error_exception_handler($p_exception = class PHPUnit\Framework\InvalidArgumentException { protected $message = 'Argument # 1 of PHPUnit\Framework\TestSuite::addTestSuite() must be a class name or object [...]

Additional Information

See https://app.travis-ci.com/github/mantisbt/mantisbt/builds/265087364

TagsNo tags attached.

Relationships

related to 0032810 closeddregad Ugrade to PHPUnit 8.5 and adapt test suite 
related to 0032816 closeddregad Use phpunit.xml to define Test Suites 

Activities

Related Changesets

MantisBT: master d79c663b

2023-08-09 13:07

dregad


Details Diff
Fix error when executing PHPUnit AllTests.php

Argument 0000001 of PHPUnit\Framework\TestSuite::addTestSuite() must be a
class name or object

AllTests::suite() method called addTest() instead of addTestSuite()
to include the 3 tests suites.

Fixes 0032815
Affected Issues
0032815
mod - tests/AllTests.php Diff File