Skip to content

Commit

Permalink
- Merge [3845].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 15, 2008
1 parent 3deb428 commit 0b190e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 10 additions & 1 deletion PHPUnit/TextUI/Command.php
Expand Up @@ -543,11 +543,20 @@ protected static function handleArguments()
$arguments['configuration'] = realpath('phpunit.xml');
}

if (!isset($arguments['test']) && isset($arguments['configuration'])) {
if (isset($arguments['configuration'])) {
$configuration = new PHPUnit_Util_Configuration(
$arguments['configuration']
);

$browsers = $configuration->getSeleniumBrowserConfiguration();

if (!empty($browsers)) {
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
}
}

if (!isset($arguments['test']) && isset($configuration)) {
$configuration->handlePHPConfiguration();
$testSuite = $configuration->getTestSuiteConfiguration();

Expand Down
7 changes: 0 additions & 7 deletions PHPUnit/TextUI/TestRunner.php
Expand Up @@ -751,13 +751,6 @@ protected function handleConfiguration(array &$arguments)
if (isset($loggingConfiguration['testdox-text']) && !isset($arguments['testdoxTextFile'])) {
$arguments['testdoxTextFile'] = $loggingConfiguration['testdox-text'];
}

$browsers = $arguments['configuration']->getSeleniumBrowserConfiguration();

if (!empty($browsers)) {
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
}
}

$arguments['cpdMinLines'] = isset($arguments['cpdMinLines']) ? $arguments['cpdMinLines'] : 5;
Expand Down

0 comments on commit 0b190e3

Please sign in to comment.