Skip to content

Commit

Permalink
Update PHPUnitTask.php
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Nov 14, 2020
1 parent e5b487f commit 4d1d998
Showing 1 changed file with 54 additions and 11 deletions.
65 changes: 54 additions & 11 deletions classes/phing/tasks/ext/phpunit/PHPUnitTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class PHPUnitTask extends Task
private $haltonfailure = false;
private $haltonincomplete = false;
private $haltonskipped = false;
private $haltondefect = false;
private $haltonwarning = false;
private $haltonrisky = false;
private $errorproperty;
private $failureproperty;
private $incompleteproperty;
Expand Down Expand Up @@ -137,6 +140,54 @@ public function setSkippedproperty($value)
$this->skippedproperty = $value;
}

/**
* @return bool
*/
public function getHaltondefect(): bool
{
return $this->haltondefect;
}

/**
* @param bool $haltondefect
*/
public function setHaltondefect(bool $haltondefect): void
{
$this->haltondefect = $haltondefect;
}

/**
* @return bool
*/
public function getHaltonwarning(): bool
{
return $this->haltonwarning;
}

/**
* @param bool $haltonwarning
*/
public function setHaltonwarning(bool $haltonwarning): void
{
$this->haltonwarning = $haltonwarning;
}

/**
* @return bool
*/
public function getHaltonrisky(): bool
{
return $this->haltonrisky;
}

/**
* @param bool $haltonrisky
*/
public function setHaltonrisky(bool $haltonrisky): void
{
$this->haltonrisky = $haltonrisky;
}

/**
* @param $value
*/
Expand Down Expand Up @@ -329,6 +380,9 @@ protected function handlePHPUnitConfiguration(PhingFile $configuration)
$this->setHaltonerror($phpunit->stopOnError());
$this->setHaltonskipped($phpunit->stopOnSkipped());
$this->setHaltonincomplete($phpunit->stopOnIncomplete());
$this->setHaltondefect($phpunit->stopOnDefect());
$this->setHaltonwarning($phpunit->stopOnWarning());
$this->setHaltonrisky($phpunit->stopOnRisky());
$this->setProcessIsolation($phpunit->processIsolation());

foreach ($config->listeners() as $listener) {
Expand Down Expand Up @@ -357,17 +411,6 @@ protected function handlePHPUnitConfiguration(PhingFile $configuration)
}
}

/* if (method_exists($config, 'getSeleniumBrowserConfiguration')) {
$browsers = $config->getSeleniumBrowserConfiguration();
if (
!empty($browsers)
&& class_exists('PHPUnit_Extensions_SeleniumTestCase')
) {
PHPUnit_Extensions_SeleniumTestCase::$browsers = $browsers;
}
} */

return $phpunit;
}

Expand Down

0 comments on commit 4d1d998

Please sign in to comment.