Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7395681
ExtensionsUnitTestSuite.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
689 B
Referenced Files
None
Subscribers
None
ExtensionsUnitTestSuite.php
View Options
<?php
use
PHPUnit\Framework\TestSuite
;
use
SebastianBergmann\FileIterator\Facade
;
/**
* Test suite that runs extensions unit tests (the `extensions:unit` suite).
*/
class
ExtensionsUnitTestSuite
extends
TestSuite
{
public
function
__construct
()
{
parent
::
__construct
();
if
(
!
defined
(
'MW_PHPUNIT_EXTENSIONS_PATHS'
)
)
{
throw
new
RuntimeException
(
'The PHPUnit bootstrap was not loaded'
);
}
$suffixes
=
[
'Test.php'
];
$fileIterator
=
new
Facade
();
foreach
(
MW_PHPUNIT_EXTENSIONS_PATHS
as
$path
)
{
$this
->
addTestFiles
(
$fileIterator
->
getFilesAsArray
(
"$path/tests/phpunit/unit"
,
$suffixes
)
);
}
}
public
static
function
suite
()
{
return
new
self
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 13:51 (6 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
36/d0/2bf0194b477777c24c7dd8ea8d9c
Default Alt Text
ExtensionsUnitTestSuite.php (689 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment