Page MenuHomeWickedGov Phorge

MediaWikiGroupValidator.php
No OneTemporary

Size
566 B
Referenced Files
None
Subscribers
None

MediaWikiGroupValidator.php

<?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

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)

Event Timeline