Permalink
Browse files

Use the new getInteger() method also for integer configuration values…

… for Selenium.
  • Loading branch information...
1 parent a9aa2b5 commit 0df8fa18e43e6c0aba016bd52d19f4de3f85fd31 @sebastianbergmann committed Oct 8, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 PHPUnit/Util/Configuration.php
@@ -718,13 +718,17 @@ public function getSeleniumBrowserConfiguration()
}
if ($config->hasAttribute('port')) {
- $port = (int)$config->getAttribute('port');
+ $port = $this->getInteger(
+ (string)$config->getAttribute('port'), 4444
+ );
} else {
$port = 4444;
}
if ($config->hasAttribute('timeout')) {
- $timeout = (int)$config->getAttribute('timeout');
+ $timeout = $this->getInteger(
+ (string)$config->getAttribute('timeout'), 30000
+ );
} else {
$timeout = 30000;
}

0 comments on commit 0df8fa1

Please sign in to comment.