Skip to content

Commit 129bc56

Browse files
[Console][DoctrineBridge][PhpUnitBridge] Remove backticks from exception messages
1 parent 353f6b1 commit 129bc56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Legacy/SymfonyTestsListenerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function startTest($test): void
224224
$annotations = Test::parseTestMethodAnnotations(\get_class($test), $test->getName(false));
225225

226226
if (isset($annotations['class']['expectedDeprecation'])) {
227-
$test->getTestResultObject()->addError($test, new AssertionFailedError('`@expectedDeprecation` annotations are not allowed at the class level.'), 0);
227+
$test->getTestResultObject()->addError($test, new AssertionFailedError('"@expectedDeprecation" annotations are not allowed at the class level.'), 0);
228228
}
229229
if (isset($annotations['method']['expectedDeprecation']) || $this->checkNumAssertions = method_exists($test, 'expectDeprecation') && (new \ReflectionMethod($test, 'expectDeprecation'))->getFileName() === (new \ReflectionMethod(ExpectDeprecationTrait::class, 'expectDeprecation'))->getFileName()) {
230230
if (isset($annotations['method']['expectedDeprecation'])) {
@@ -297,7 +297,7 @@ public function endTest($test, $time): void
297297
restore_error_handler();
298298

299299
if (!\in_array('legacy', $groups, true)) {
300-
$test->getTestResultObject()->addError($test, new AssertionFailedError('Only tests with the `@group legacy` annotation can expect a deprecation.'), 0);
300+
$test->getTestResultObject()->addError($test, new AssertionFailedError('Only tests with the "@group legacy" annotation can expect a deprecation.'), 0);
301301
} elseif (!\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE, BaseTestRunner::STATUS_FAILURE, BaseTestRunner::STATUS_ERROR], true)) {
302302
try {
303303
$prefix = "@expectedDeprecation:\n";

0 commit comments

Comments
 (0)