Skip to content

Commit

Permalink
Map unknown test process status to 'skipped' result to avoid errors i…
Browse files Browse the repository at this point in the history
…n log and never finished tests

This is caused by sebastianbergmann/phpunit#3379
  • Loading branch information
OndraM committed Nov 8, 2018
1 parent a1d53d6 commit a2939c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -62,7 +62,6 @@
"phpstan/phpstan-shim": "^0.10.5",
"jakub-onderka/php-parallel-lint": "^1.0.0",
"lmc/coding-standard": "^1.0.0",
"squizlabs/php_codesniffer": "^3.2.3",
"phpstan/phpstan-phpunit": "^0.10.0"
},
"suggest": {
Expand Down
2 changes: 2 additions & 0 deletions src/Publisher/AbstractPublisher.php
Expand Up @@ -51,6 +51,8 @@ abstract class AbstractPublisher
BaseTestRunner::STATUS_ERROR => self::TEST_RESULT_BROKEN,
BaseTestRunner::STATUS_RISKY => self::TEST_RESULT_BROKEN,
BaseTestRunner::STATUS_WARNING => self::TEST_RESULT_BROKEN,
// @todo Remove after https://github.com/sebastianbergmann/phpunit/issues/3379 is fixed
BaseTestRunner::STATUS_UNKNOWN => self::TEST_RESULT_SKIPPED,
];

/**
Expand Down

0 comments on commit a2939c0

Please sign in to comment.