diff --git a/drupal_selenium_web_test_case.php b/drupal_selenium_web_test_case.php
index bea28b8..9d14d76 100755
--- a/drupal_selenium_web_test_case.php
+++ b/drupal_selenium_web_test_case.php
@@ -31,7 +31,12 @@ class DrupalSeleniumWebTestCase extends DrupalWebTestCase {
   protected $allowed_browsers = array('firefox', 'chrome');
 
   protected function setUp() {
+    // Backward compatibility together with support of new way of passing modules parameter.
+    // @see DrupalWebTestCase::setUp()
     $modules = func_get_args();
+    if (isset($modules[0]) && is_array($modules[0])) {
+      $modules = $modules[0];
+    }
     parent::setUp($modules);
 
     // By default we run Firefox.
