@@ -39,7 +39,7 @@ public function testAuthenticationExceptionWithoutEntryPoint(\Exception $excepti
3939 $ listener ->onKernelException ($ event );
4040
4141 $ this ->assertNull ($ event ->getResponse ());
42- $ this ->assertEquals ($ eventException , $ event ->getException ());
42+ $ this ->assertEquals ($ eventException , $ event ->getThrowable ());
4343 }
4444
4545 /**
@@ -58,7 +58,7 @@ public function testAuthenticationExceptionWithEntryPoint(\Exception $exception)
5858
5959 $ this ->assertEquals ('Forbidden ' , $ event ->getResponse ()->getContent ());
6060 $ this ->assertEquals (403 , $ event ->getResponse ()->getStatusCode ());
61- $ this ->assertSame ($ exception , $ event ->getException ());
61+ $ this ->assertSame ($ exception , $ event ->getThrowable ());
6262 }
6363
6464 public function getAuthenticationExceptionProvider ()
@@ -85,8 +85,8 @@ public function testExceptionWhenEntryPointReturnsBadValue()
8585 $ listener = $ this ->createExceptionListener (null , null , null , $ entryPoint );
8686 $ listener ->onKernelException ($ event );
8787 // the exception has been replaced by our LogicException
88- $ this ->assertInstanceOf ('LogicException ' , $ event ->getException ());
89- $ this ->assertStringEndsWith ('start() method must return a Response object (string returned) ' , $ event ->getException ()->getMessage ());
88+ $ this ->assertInstanceOf ('LogicException ' , $ event ->getThrowable ());
89+ $ this ->assertStringEndsWith ('start() method must return a Response object (string returned) ' , $ event ->getThrowable ()->getMessage ());
9090 }
9191
9292 /**
@@ -100,7 +100,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
100100 $ listener ->onKernelException ($ event );
101101
102102 $ this ->assertNull ($ event ->getResponse ());
103- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getException ()->getPrevious ());
103+ $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
104104 }
105105
106106 /**
@@ -123,7 +123,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
123123
124124 $ this ->assertEquals ('Unauthorized ' , $ event ->getResponse ()->getContent ());
125125 $ this ->assertEquals (401 , $ event ->getResponse ()->getStatusCode ());
126- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getException ()->getPrevious ());
126+ $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
127127 }
128128
129129 /**
@@ -140,7 +140,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAn
140140 $ listener ->onKernelException ($ event );
141141
142142 $ this ->assertEquals ('error ' , $ event ->getResponse ()->getContent ());
143- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getException ()->getPrevious ());
143+ $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
144144 }
145145
146146 /**
@@ -157,7 +157,7 @@ public function testAccessDeniedExceptionNotFullFledged(\Exception $exception, \
157157 $ listener ->onKernelException ($ event );
158158
159159 $ this ->assertEquals ('OK ' , $ event ->getResponse ()->getContent ());
160- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getException ()->getPrevious ());
160+ $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
161161 }
162162
163163 public function getAccessDeniedExceptionProvider ()
0 commit comments