Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7424741
ServicesTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
825 B
Referenced Files
None
Subscribers
None
ServicesTest.php
View Options
<?php
declare
(
strict_types
=
1
);
use
MediaWiki\Extension\Translate\Services
;
/**
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @group Database
* @covers \MediaWiki\Extension\Translate\Services
*/
class
ServicesTest
extends
MediaWikiIntegrationTestCase
{
public
function
testNoExceptions
()
{
$services
=
Services
::
getInstance
();
$class
=
new
ReflectionClass
(
Services
::
class
);
$reflectionMethods
=
$class
->
getMethods
(
ReflectionMethod
::
IS_PUBLIC
);
$methods
=
[];
foreach
(
$reflectionMethods
as
$methodObj
)
{
$method
=
$methodObj
->
getName
();
if
(
!
$methodObj
->
isStatic
()
&&
preg_match
(
'/^get[A-Z]/'
,
$method
)
)
{
$methods
[]
=
$method
;
}
}
foreach
(
$methods
as
$method
)
{
$services
->
$method
();
}
$this
->
assertTrue
(
true
,
'All services can be constructed'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 07:32 (20 h, 9 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1c/31/c510800fa0e99b212e9a88181f6f
Default Alt Text
ServicesTest.php (825 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment