wiki.techinc.nl/tests/phpunit/bootstrap.integration.php
Daimona Eaytoy a69c57b852 phpunit: Deprecate suite.xml and composer phpunit:entrypoint
Leave `composer phpunit` as the main PHPUnit entry point, a single
config file (phpunit.xml.dist) and a single bootstrap (bootstrap.php).
Deprecate the `composer phpunit:entrypoint`, making it print a
deprecation message and then fall back to `composer phpunit`. Deprecate
boostrap.integration.php as well. Update the release notes accordingly.

Add a temporary PHPUnit extension, only enabled in suite.xml, that
prints a deprecation message. Define a new constant in phpunit.php to
avoid printing 2 deprecation messages when phpunit.php is used (as it
auto-defaults to suite.xml).

Add some documentation to bootstrap.php.

Bug: T227900
Depends-On: Ie91c9f2882f12fd8ea822529528dd1dd9efe89db
Change-Id: If2ffe0522422fd6aadcc08988789d98c2403fc48
2023-12-21 08:22:35 +00:00

15 lines
359 B
PHP

<?php
/**
* Bootstrapping for MediaWiki PHPUnit tests that allows running integration tests.
* This file is included by phpunit and is NOT in the global scope.
*
* @file
* @deprecated since 1.42 Use bootstrap.php instead
*/
require_once __DIR__ . '/bootstrap.common.php';
TestSetup::loadSettingsFiles();
TestSetup::maybeCheckComposerLockUpToDate();