Skip to content

Commit f6c9e73

Browse files
committed
do not override expected exception
1 parent 6115729 commit f6c9e73

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)