- public $args = array();
-
- protected $baseUrl;
-
- protected $testId;
- /** @var boolean $collectCodeCoverageInformation */
- protected $collectCodeCoverageInformation;
- protected $coverageScriptUrl;
-
- public function run(PHPUnit_Framework_TestResult $result = NULL)
- {
- $this->testId = get_class($this) . '__' . $this->getName();
-
- if ($result === NULL) {
- $result = $this->createResult();
- }
-
- $this->collectCodeCoverageInformation = $result->getCollectCodeCoverageInformation();
-
- parent::run($result);
-
- if ($this->collectCodeCoverageInformation) {
- $coverage = new PHPUnit_Extensions_SeleniumCommon_RemoteCoverage(
- $this->coverageScriptUrl,
- $this->testId
- );
- $result->getCodeCoverage()->append(
- $coverage->get(), $this
- );
- }
-
- // do not call this before to give the time to the Listeners to run
- //$this->getStrategy()->endOfTest($this->session);
-
- return $result;
- }
-