You are here

protected function PHPUnit_Util_Configuration::getBoolean in Zircon Profile 8

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

@since Method available since Release 3.2.3

Parameters

string $value:

bool $default:

Return value

bool

4 calls to PHPUnit_Util_Configuration::getBoolean()
PHPUnit_Util_Configuration::getFilterConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the configuration for SUT filtering.
PHPUnit_Util_Configuration::getLoggingConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the logging configuration.
PHPUnit_Util_Configuration::getPHPConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the PHP configuration.
PHPUnit_Util_Configuration::getPHPUnitConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the PHPUnit configuration.

File

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

Class

PHPUnit_Util_Configuration
Wrapper for the PHPUnit XML configuration file.

Code

protected function getBoolean($value, $default) {
  if (strtolower($value) == 'false') {
    return false;
  }
  elseif (strtolower($value) == 'true') {
    return true;
  }
  return $default;
}