public function PHPUnit_Util_Configuration::getPHPUnitConfiguration

Returns the PHPUnit configuration.

@since Method available since Release 3.2.14

Return value

array

File

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

Class

PHPUnit_Util_Configuration
Wrapper for the PHPUnit XML configuration file.

Code

public function getPHPUnitConfiguration() {
  $result = array();
  $root = $this->document->documentElement;
  if ($root
    ->hasAttribute('cacheTokens')) {
    $result['cacheTokens'] = $this
      ->getBoolean((string) $root
      ->getAttribute('cacheTokens'), FALSE);
  }
  if ($root
    ->hasAttribute('colors')) {
    $result['colors'] = $this
      ->getBoolean((string) $root
      ->getAttribute('colors'), FALSE);
  }
  if ($root
    ->hasAttribute('backupGlobals')) {
    $result['backupGlobals'] = $this
      ->getBoolean((string) $root
      ->getAttribute('backupGlobals'), TRUE);
  }
  if ($root
    ->hasAttribute('backupStaticAttributes')) {
    $result['backupStaticAttributes'] = $this
      ->getBoolean((string) $root
      ->getAttribute('backupStaticAttributes'), FALSE);
  }
  if ($root
    ->hasAttribute('bootstrap')) {
    $result['bootstrap'] = $this
      ->toAbsolutePath((string) $root
      ->getAttribute('bootstrap'));
  }
  if ($root
    ->hasAttribute('convertErrorsToExceptions')) {
    $result['convertErrorsToExceptions'] = $this
      ->getBoolean((string) $root
      ->getAttribute('convertErrorsToExceptions'), TRUE);
  }
  if ($root
    ->hasAttribute('convertNoticesToExceptions')) {
    $result['convertNoticesToExceptions'] = $this
      ->getBoolean((string) $root
      ->getAttribute('convertNoticesToExceptions'), TRUE);
  }
  if ($root
    ->hasAttribute('convertWarningsToExceptions')) {
    $result['convertWarningsToExceptions'] = $this
      ->getBoolean((string) $root
      ->getAttribute('convertWarningsToExceptions'), TRUE);
  }
  if ($root
    ->hasAttribute('forceCoversAnnotation')) {
    $result['forceCoversAnnotation'] = $this
      ->getBoolean((string) $root
      ->getAttribute('forceCoversAnnotation'), FALSE);
  }
  if ($root
    ->hasAttribute('mapTestClassNameToCoveredClassName')) {
    $result['mapTestClassNameToCoveredClassName'] = $this
      ->getBoolean((string) $root
      ->getAttribute('mapTestClassNameToCoveredClassName'), FALSE);
  }
  if ($root
    ->hasAttribute('processIsolation')) {
    $result['processIsolation'] = $this
      ->getBoolean((string) $root
      ->getAttribute('processIsolation'), FALSE);
  }
  if ($root
    ->hasAttribute('stopOnError')) {
    $result['stopOnError'] = $this
      ->getBoolean((string) $root
      ->getAttribute('stopOnError'), FALSE);
  }
  if ($root
    ->hasAttribute('stopOnFailure')) {
    $result['stopOnFailure'] = $this
      ->getBoolean((string) $root
      ->getAttribute('stopOnFailure'), FALSE);
  }
  if ($root
    ->hasAttribute('stopOnIncomplete')) {
    $result['stopOnIncomplete'] = $this
      ->getBoolean((string) $root
      ->getAttribute('stopOnIncomplete'), FALSE);
  }
  if ($root
    ->hasAttribute('stopOnSkipped')) {
    $result['stopOnSkipped'] = $this
      ->getBoolean((string) $root
      ->getAttribute('stopOnSkipped'), FALSE);
  }
  if ($root
    ->hasAttribute('testSuiteLoaderClass')) {
    $result['testSuiteLoaderClass'] = (string) $root
      ->getAttribute('testSuiteLoaderClass');
  }
  if ($root
    ->hasAttribute('testSuiteLoaderFile')) {
    $result['testSuiteLoaderFile'] = (string) $root
      ->getAttribute('testSuiteLoaderFile');
  }
  if ($root
    ->hasAttribute('printerClass')) {
    $result['printerClass'] = (string) $root
      ->getAttribute('printerClass');
  }
  if ($root
    ->hasAttribute('printerFile')) {
    $result['printerFile'] = (string) $root
      ->getAttribute('printerFile');
  }
  if ($root
    ->hasAttribute('timeoutForSmallTests')) {
    $result['timeoutForSmallTests'] = $this
      ->getInteger((string) $root
      ->getAttribute('timeoutForSmallTests'), 1);
  }
  if ($root
    ->hasAttribute('timeoutForMediumTests')) {
    $result['timeoutForMediumTests'] = $this
      ->getInteger((string) $root
      ->getAttribute('timeoutForMediumTests'), 10);
  }
  if ($root
    ->hasAttribute('timeoutForLargeTests')) {
    $result['timeoutForLargeTests'] = $this
      ->getInteger((string) $root
      ->getAttribute('timeoutForLargeTests'), 60);
  }
  if ($root
    ->hasAttribute('strict')) {
    $result['strict'] = $this
      ->getBoolean((string) $root
      ->getAttribute('strict'), FALSE);
  }
  if ($root
    ->hasAttribute('verbose')) {
    $result['verbose'] = $this
      ->getBoolean((string) $root
      ->getAttribute('verbose'), FALSE);
  }
  return $result;
}