You are here

public function ExceptionListenerTest::provider in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/EventListener/ExceptionListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\ExceptionListenerTest::provider()

File

vendor/symfony/http-kernel/Tests/EventListener/ExceptionListenerTest.php, line 88

Class

ExceptionListenerTest
ExceptionListenerTest.

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

public function provider() {
  if (!class_exists('Symfony\\Component\\HttpFoundation\\Request')) {
    return array(
      array(
        null,
        null,
      ),
    );
  }
  $request = new Request();
  $exception = new \Exception('foo');
  $event = new GetResponseForExceptionEvent(new TestKernel(), $request, 'foo', $exception);
  $event2 = new GetResponseForExceptionEvent(new TestKernelThatThrowsException(), $request, 'foo', $exception);
  return array(
    array(
      $event,
      $event2,
    ),
  );
}