Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432563
bootstrap.maintenance.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
bootstrap.maintenance.php
View Options
<?php
/**
* DEPRECATED: This file only exists for BC with tests/phpunit/phpunit.php and will be removed together with it.
*
* @file
*/
if
(
!
defined
(
'MW_PHPUNIT_TEST'
)
)
{
echo
<<<EOF
You are running these tests directly from phpunit. You may not have all globals correctly set.
Running `composer phpunit` instead is recommended.
EOF;
require_once
__DIR__
.
"/phpunit.php"
;
}
// The TestRunner class will run each test suite and may call
// exit() with an exit status code. As such, we cannot run code "after the last test"
// by adding statements to PHPUnitMaintClass::execute.
// Instead, we work around it by registering a shutdown callback from the bootstrap
// file, which runs before PHPUnit starts.
// @todo Once we use PHPUnit 8 or higher, use the 'AfterLastTestHook' feature.
// https://phpunit.readthedocs.io/en/8.0/extending-phpunit.html#available-hook-interfaces
register_shutdown_function
(
static
function
()
{
// This will:
// - clear the temporary job queue.
// - allow extensions to delete any temporary tables they created.
// - restore ability to connect to the real database.
MediaWikiIntegrationTestCase
::
teardownTestDB
();
}
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:59 (1 d, 2 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/1c/51b35984a4f49b66a4c171de4616
Default Alt Text
bootstrap.maintenance.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment