Skip to content

Commit

Permalink
Streamline the types in Runner/BaseTestRunner.php
Browse files Browse the repository at this point in the history
This is the backport of #3652.
  • Loading branch information
oliverklee authored and sebastianbergmann committed May 15, 2019
1 parent 64cb33f commit 8d39739
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/Runner/BaseTestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,49 @@
*/
abstract class BaseTestRunner
{
/**
* @var int
*/
public const STATUS_UNKNOWN = -1;

/**
* @var int
*/
public const STATUS_PASSED = 0;

/**
* @var int
*/
public const STATUS_SKIPPED = 1;

/**
* @var int
*/
public const STATUS_INCOMPLETE = 2;

/**
* @var int
*/
public const STATUS_FAILURE = 3;

/**
* @var int
*/
public const STATUS_ERROR = 4;

/**
* @var int
*/
public const STATUS_RISKY = 5;

/**
* @var int
*/
public const STATUS_WARNING = 6;

/**
* @var string
*/
public const SUITE_METHODNAME = 'suite';

/**
Expand All @@ -52,7 +79,7 @@ public function getLoader(): TestSuiteLoader
* This is a template method, subclasses override
* the runFailed() and clearStatus() methods.
*
* @param array|string $suffixes
* @param string|string[] $suffixes
*
* @throws Exception
*/
Expand Down

0 comments on commit 8d39739

Please sign in to comment.