Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cbe1e0

Browse files
Fix test
1 parent 62808e4 commit 0cbe1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function testHandleWhenControllerThrowsAnExceptionAndCatchIsTrueWithANonH
7171
try {
7272
$kernel->handle(new Request(), HttpKernelInterface::MASTER_REQUEST, true);
7373
$this->fail('LogicException expected');
74-
} catch (\LogicException $e) {
75-
$this->assertSame($exception, $e->getPrevious());
74+
} catch (\RuntimeException $e) {
75+
$this->assertSame($exception, $e);
7676
}
7777
}
7878

0 commit comments

Comments
 (0)