Skip to content

Commit c951e72

Browse files
committed
Fix tests that do not trigger any depreciation
1 parent 5461c1e commit c951e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function endTest(\PHPUnit_Framework_Test $test, $time)
176176
restore_error_handler();
177177
try {
178178
$prefix = "@expectedDeprecation:\n ";
179-
$test->assertStringMatchesFormat($prefix.implode("\n ", $this->expectedDeprecations), $prefix.implode("\n ", $this->gatheredDeprecations));
179+
$test->assertStringMatchesFormat($prefix.implode("\n ", $this->expectedDeprecations), $prefix.implode("\n ", $this->gatheredDeprecations ?: array()));
180180
} catch (\PHPUnit_Framework_AssertionFailedError $e) {
181181
$test->getTestResultObject()->addFailure($test, $e, $time);
182182
}

0 commit comments

Comments
 (0)