Fix tests that do not trigger any depreciation

This commit is contained in:
Julien Falque 2016-11-25 20:30:18 +01:00
parent 5461c1ed53
commit 9287b52783
No known key found for this signature in database
GPG Key ID: 6B13BB4B40DBD0E9

View File

@ -25,8 +25,8 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
private $skippedFile = false;
private $wasSkipped = array();
private $isSkipped = array();
private $expectedDeprecations;
private $gatheredDeprecations;
private $expectedDeprecations = array();
private $gatheredDeprecations = array();
private $previousErrorHandler;
/**
@ -181,7 +181,8 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
$test->getTestResultObject()->addFailure($test, $e, $time);
}
$this->expectedDeprecations = $this->gatheredDeprecations = $this->previousErrorHandler = null;
$this->expectedDeprecations = $this->gatheredDeprecations = array();
$this->previousErrorHandler = null;
}
if (-2 < $this->state && $test instanceof \PHPUnit_Framework_TestCase) {
$groups = \PHPUnit_Util_Test::getGroups(get_class($test), $test->getName(false));