You are here

public function PHPUnit_Util_Configuration::getGroupConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Configuration.php \PHPUnit_Util_Configuration::getGroupConfiguration()

Returns the configuration for groups.

@since Method available since Release 3.2.1

Return value

array

File

vendor/phpunit/phpunit/src/Util/Configuration.php, line 288

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->textContent;
  }
  foreach ($this->xpath
    ->query('groups/exclude/group') as $group) {
    $groups['exclude'][] = (string) $group->textContent;
  }
  return $groups;
}