Skip to content

Commit

Permalink
Closes issue #383.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 24, 2011
1 parent 8b6d2ee commit a29aeeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion PHPUnit/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,8 @@ protected function handleArguments(array $argv)

$browsers = $configuration->getSeleniumBrowserConfiguration();

if (!empty($browsers)) {
if (!empty($browsers) &&
class_exists('PHPUnit_Extensions_SeleniumTestCase')) {
PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
}

Expand Down
6 changes: 4 additions & 2 deletions PHPUnit/Util/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,10 @@ public static function getSize($className, $methodName)
$size = self::SMALL;
$class = new ReflectionClass($className);

if ($class->isSubclassOf('PHPUnit_Extensions_Database_TestCase') ||
$class->isSubclassOf('PHPUnit_Extensions_SeleniumTestCase')) {
if ((class_exists('PHPUnit_Extensions_Database_TestCase') &&
$class->isSubclassOf('PHPUnit_Extensions_Database_TestCase')) ||
(class_exists('PHPUnit_Extensions_SeleniumTestCase') &&
$class->isSubclassOf('PHPUnit_Extensions_SeleniumTestCase'))) {
$size = self::LARGE;
}

Expand Down

0 comments on commit a29aeeb

Please sign in to comment.