Skip to content

Commit d6db30a

Browse files
committed
minor #2142 do not override expected exception (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- do not override expected exception Commits ------- f6c9e73 do not override expected exception
2 parents 6115729 + f6c9e73 commit d6db30a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/EventListener/AccessDeniedListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ public function testCommonExceptionsAreBypassed($formats)
112112
$listener = new AccessDeniedListener($formats, null, 'foo');
113113
$listener->onKernelException($event);
114114
if (method_exists($event, 'getThrowable')) {
115-
$exception = $event->getThrowable();
115+
$thrownException = $event->getThrowable();
116116
} else {
117-
$exception = $event->getException();
117+
$thrownException = $event->getException();
118118
}
119-
$this->assertSame($exception, $exception);
119+
$this->assertSame($exception, $thrownException);
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)