MINOR Allowing to register checks for multiple suites in one call to avoid repetition

This commit is contained in:
Ingo Schommer 2012-01-20 17:39:39 +01:00
parent 8b84150acd
commit 09ba044f5d

View File

@ -111,10 +111,13 @@ class EnvironmentCheckSuite {
} }
/** /**
* Register a check against the named check suite * Register a check against the named check suite.
*
* @param String|Array
*/ */
static function register($name, $check, $title = null) { static function register($names, $check, $title = null) {
self::inst($name)->push($check, $title); if(!is_array($names)) $names = array($names);
foreach($names as $name) self::inst($name)->push($check, $title);
} }
} }