Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle test dependencies.

  • Loading branch information...
commit 0e9a2c86017638b5b2958b49ee9f6a0c43b53f8c 1 parent cee1d13
Sebastian Bergmann sebastianbergmann authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 PHPUnit/Extensions/SeleniumTestCase.php
6 PHPUnit/Extensions/SeleniumTestCase.php
@@ -292,6 +292,8 @@ public function run(PHPUnit_Framework_TestResult $result = NULL)
$result = $this->createResult();
+ $this->result = $result;
$this->collectCodeCoverageInformation = $result->getCollectCodeCoverageInformation();
foreach ($this->drivers as $driver) {
@@ -300,6 +302,10 @@ public function run(PHPUnit_Framework_TestResult $result = NULL)
+ if (!$this->handleDependencies()) {
+ return;
+ }
if ($this->collectCodeCoverageInformation) {

3 comments on commit 0e9a2c8

Tatyana Kurnosova

The variable $result is defined as private in class PHPUnit_Framework_TestCase. If I try to make $test->setDependencies($deps) for instance of PHPUnit_Framework_SeleniumTestCase after the test run I get an error: "Call to a member function passed() on a non-object in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1390"

Sebastian Bergmann

Thank you for pointing this out, the problem was fixed in e48f906.

Tatyana Kurnosova

Thank you!

Please sign in to comment.
Something went wrong with that request. Please try again.