use Symfony\Component\Security\Http\HttpUtils;
class ExceptionListenerTest extends TestCase
{ /**
* @dataProvider getAuthenticationExceptionProvider
*/
public function testAuthenticationExceptionWithoutEntryPoint(\Exception
$exception, \Exception
$eventException) { $event =
$this->
createEvent($exception);
$listener =
$this->
createExceptionListener();
$listener->
onKernelException($event);
$this->
assertNull($event->
getResponse());
$this->
assertEquals($eventException,
$event->
getThrowable());
} /**
* @dataProvider getAuthenticationExceptionProvider
*/
public function testAuthenticationExceptionWithEntryPoint(\Exception
$exception) {