@@ -39,7 +39,7 @@ public function testAuthenticationExceptionWithoutEntryPoint(\Exception $excepti
39
39
$ listener ->onKernelException ($ event );
40
40
41
41
$ this ->assertNull ($ event ->getResponse ());
42
- $ this ->assertEquals ($ eventException , $ event ->getException ());
42
+ $ this ->assertEquals ($ eventException , $ event ->getThrowable ());
43
43
}
44
44
45
45
/**
@@ -58,7 +58,7 @@ public function testAuthenticationExceptionWithEntryPoint(\Exception $exception)
58
58
59
59
$ this ->assertEquals ('Forbidden ' , $ event ->getResponse ()->getContent ());
60
60
$ this ->assertEquals (403 , $ event ->getResponse ()->getStatusCode ());
61
- $ this ->assertSame ($ exception , $ event ->getException ());
61
+ $ this ->assertSame ($ exception , $ event ->getThrowable ());
62
62
}
63
63
64
64
public function getAuthenticationExceptionProvider ()
@@ -85,8 +85,8 @@ public function testExceptionWhenEntryPointReturnsBadValue()
85
85
$ listener = $ this ->createExceptionListener (null , null , null , $ entryPoint );
86
86
$ listener ->onKernelException ($ event );
87
87
// 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 ());
90
90
}
91
91
92
92
/**
@@ -100,7 +100,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
100
100
$ listener ->onKernelException ($ event );
101
101
102
102
$ this ->assertNull ($ event ->getResponse ());
103
- $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getException ()->getPrevious ());
103
+ $ this ->assertSame (null === $ eventException ? $ exception : $ eventException , $ event ->getThrowable ()->getPrevious ());
104
104
}
105
105
106
106
/**
@@ -123,7 +123,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandle
123
123
124
124
$ this ->assertEquals ('Unauthorized ' , $ event ->getResponse ()->getContent ());
125
125
$ 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 ());
127
127
}
128
128
129
129
/**
@@ -140,7 +140,7 @@ public function testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAn
140
140
$ listener ->onKernelException ($ event );
141
141
142
142
$ 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 ());
144
144
}
145
145
146
146
/**
@@ -157,7 +157,7 @@ public function testAccessDeniedExceptionNotFullFledged(\Exception $exception, \
157
157
$ listener ->onKernelException ($ event );
158
158
159
159
$ 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 ());
161
161
}
162
162
163
163
public function getAccessDeniedExceptionProvider ()
0 commit comments