public function PHPUnit_Util_Configuration::getGroupConfiguration

Returns the configuration for groups.

@since Method available since Release 3.2.1

Return value

array

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Configuration.php, line 322

Class

PHPUnit_Util_Configuration
Wrapper for the PHPUnit XML configuration file.

Code

public function getGroupConfiguration() {
  $groups = array(
    'include' => array(),
    'exclude' => array(),
  );
  foreach ($this->xpath
    ->query('groups/include/group') as $group) {
    $groups['include'][] = (string) $group->nodeValue;
  }
  foreach ($this->xpath
    ->query('groups/exclude/group') as $group) {
    $groups['exclude'][] = (string) $group->nodeValue;
  }
  return $groups;
}