Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Oct 7, 2015
1 parent 0f3dbf5 commit 74f5559
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/Concise/Console/ResultPrinter/AbstractResultPrinter.php
Expand Up @@ -41,9 +41,10 @@ abstract class AbstractResultPrinter
public $testCount = 0;

/**
* Needs description for static.
* @var integer
*/
public $totalTestCount = 0;
public static $totalTestCount = 0;

/**
* @var integer
Expand Down Expand Up @@ -118,7 +119,7 @@ public function getTestCount()
*/
public function getTotalTestCount()
{
return $this->totalTestCount;
return self::$totalTestCount;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Concise/Console/ResultPrinter/ResultPrinterProxy.php
Expand Up @@ -168,12 +168,12 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
{
if ($this->startedTestSuite === 0) {
if ($suite instanceof Suite) {
$this->getResultPrinter()->totalTestCount = $suite->realCount();
AbstractResultPrinter::$totalTestCount = $suite->realCount();
} elseif ($suite->testAt(0) instanceof Dummy) {
$this->getResultPrinter()->totalTestCount = $suite->testAt(0)
AbstractResultPrinter::$totalTestCount = $suite->testAt(0)
->realCount();
} else {
$this->getResultPrinter()->totalTestCount = count($suite);
AbstractResultPrinter::$totalTestCount = count($suite);
}
}

Expand Down

0 comments on commit 74f5559

Please sign in to comment.