Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F8103316
MediaWikiGroupValidator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
566 B
Referenced Files
None
Subscribers
None
MediaWikiGroupValidator.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Testing
*/
/**
* Trait that provides methods to check if group annotations are valid.
*/
trait
MediaWikiGroupValidator
{
/**
* @return bool
* @since 1.34
*/
private
static
function
isTestInDatabaseGroup
()
{
// If the test class says it belongs to the Database group, it needs the database.
// NOTE: This ONLY checks for the group in the class level doc comment.
$rc
=
new
ReflectionClass
(
static
::
class
);
return
(
bool
)
preg_match
(
'/@group +Database
\b
/m'
,
$rc
->
getDocComment
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 8, 02:09 (1 d, 21 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/e1/68f4f02ae3b80bccb3257c979871
Default Alt Text
MediaWikiGroupValidator.php (566 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment