You are here

protected function PHPUnit_Util_Configuration::getInteger in Zircon Profile 8.0

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

@since Method available since Release 3.6.0

Parameters

string $value:

bool $default:

Return value

bool

3 calls to PHPUnit_Util_Configuration::getInteger()
PHPUnit_Util_Configuration::getLoggingConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the logging configuration.
PHPUnit_Util_Configuration::getPHPUnitConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the PHPUnit configuration.
PHPUnit_Util_Configuration::getSeleniumBrowserConfiguration in vendor/phpunit/phpunit/src/Util/Configuration.php
Returns the SeleniumTestCase browser configuration.

File

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

Class

PHPUnit_Util_Configuration
Wrapper for the PHPUnit XML configuration file.

Code

protected function getInteger($value, $default) {
  if (is_numeric($value)) {
    return (int) $value;
  }
  return $default;
}