Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4094147
ServiceWiringTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
667 B
Referenced Files
None
Subscribers
None
ServiceWiringTest.php
View Options
<?php
namespace
MediaWiki\Extension\Math\Tests
;
use
Generator
;
use
MediaWikiUnitTestCase
;
/**
* @coversNothing
*/
class
ServiceWiringTest
extends
MediaWikiUnitTestCase
{
private
const
EXTENSION_PREFIX
=
'Math.'
;
/**
* @dataProvider provideWiring
*/
public
function
testAllWiringsAreProperlyShaped
(
$name
,
$definition
):
void
{
$this
->
assertStringStartsWith
(
self
::
EXTENSION_PREFIX
,
$name
);
$this
->
assertIsCallable
(
$definition
);
}
public
static
function
provideWiring
():
Generator
{
$wiring
=
require
__DIR__
.
'/../../../ServiceWiring.php'
;
foreach
(
$wiring
as
$name
=>
$definition
)
{
yield
$name
=>
[
$name
,
$definition
];
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 13:09 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b7/d6/76263d8d18ab539e22031b77c91d
Default Alt Text
ServiceWiringTest.php (667 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment