include expected deprecations in assertion counter

This commit is contained in:
Christian Flothmann 2017-03-01 20:29:08 +01:00
parent 8d99d5758a
commit cdcd5ae9c5

View File

@ -240,6 +240,10 @@ class SymfonyTestsListenerTrait
}
if ($this->expectedDeprecations) {
if (!in_array($test->getStatus(), array($BaseTestRunner::STATUS_SKIPPED, $BaseTestRunner::STATUS_INCOMPLETE), true)) {
$test->addToAssertionCount(count($this->expectedDeprecations));
}
restore_error_handler();
if (!in_array($test->getStatus(), array($BaseTestRunner::STATUS_SKIPPED, $BaseTestRunner::STATUS_INCOMPLETE, $BaseTestRunner::STATUS_FAILURE, $BaseTestRunner::STATUS_ERROR), true)) {