Dear community,
since MW 1.41 the bootstrapping of PHPUnit fails for SemanticMediaWiki. This manifests itself in the fact that constants defined in tests/bootstrap.php are undefined, e.g.
3) SMW\Tests\Exception\JSONFileParseExceptionTest::testCanConstruct Error: Undefined constant "SMW\Tests\Exception\SMW_PHPUNIT_DIR" This seems to be related to the deprecation mentioned in the MW 1.41 release notes:
"The tests/phpunit/phpunit.php entrypoint has been deprecated. PHPUnit tests should be run with composer, for example with the composer phpunit:entrypoint command."
The following warning is displayed during a PHPUnit run:
******************************************************************************* DEPRECATED: The tests/phpunit/phpunit.php entry point has been deprecated. Use `composer phpunit:entrypoint` instead. ******************************************************************************* Maybe related: https://phabricator.wikimedia.org/T227900
The SMW community would be very grateful if someone who is familiar with the mentioned change explains how SMW has to be changed so that PHPUnit for MW 1.41 works again.
We have an open issue here: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/5701
wikitech-l@lists.wikimedia.org