Skip to content

Commit

Permalink
Merge branch '7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 1, 2018
2 parents d902291 + 9bcf6cb commit dbf1306
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog-7.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes of the PHPUnit 7.2 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [7.2.1] - 2018-06-01

* Fixed [#3155](https://github.com/sebastianbergmann/phpunit/issues/3155): Calling `getStatus()` on a `TestCase` object before the respective test has been executed results in type error

## [7.2.0] - 2018-06-01

### Added
Expand All @@ -22,5 +26,6 @@ All notable changes of the PHPUnit 7.2 release series are documented in this fil

* Fixed [#3069](https://github.com/sebastianbergmann/phpunit/issues/3069): Method `ResultPrinter::printWaitPrompt()` seems to be unused

[7.2.1]: https://github.com/sebastianbergmann/phpunit/compare/7.2.0...7.2.1
[7.2.0]: https://github.com/sebastianbergmann/phpunit/compare/7.1...7.2.0

2 changes: 1 addition & 1 deletion src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ abstract class TestCase extends Assert implements Test, SelfDescribing
/**
* @var int
*/
private $status;
private $status = BaseTestRunner::STATUS_UNKNOWN;

/**
* @var string
Expand Down
1 change: 1 addition & 0 deletions src/Runner/BaseTestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
abstract class BaseTestRunner
{
public const STATUS_UNKNOWN = -1;
public const STATUS_PASSED = 0;
public const STATUS_SKIPPED = 1;
public const STATUS_INCOMPLETE = 2;
Expand Down

0 comments on commit dbf1306

Please sign in to comment.