Handles the rare warning test status when generating code coverage

This commit is contained in:
Pablo Tejada 2017-01-05 18:14:45 +07:00 committed by Dmitry Khomutov
parent e934a48a61
commit 881713747e
2 changed files with 17 additions and 0 deletions

View file

@ -132,6 +132,10 @@ class PhpUnitResult
$pass = true;
$severity = self::SEVERITY_PASS;
break;
case 'warning':
$pass = true;
$severity = self::SEVERITY_PASS;
break;
default:
throw new \Exception("Unexpected PHPUnit test status: {$status}");
break;

View file

@ -339,6 +339,19 @@
"trace": [],
"message": "",
"output": ""
}{
"event": "testStart",
"suite": "Tests\\Money\\MoneyTest",
"test": "Tests\\Money\\MoneyTest::testFactoryMethods"
}{
"event": "test",
"suite": "Tests\\Money\\MoneyTest",
"test": "Tests\\Money\\MoneyTest::testFactoryMethods",
"status": "warning",
"time": 0.06482195854187,
"trace": [],
"message": "Trying to @cover or @use not existing method \"Monies::test\".",
"output": ""
}{
"event": "testStart",
"suite": "Tests\\Money\\Parser\\IntlMoneyParserTest::testIntlParser",