aboutsummaryrefslogtreecommitdiffstats
path: root/tests/event
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2015-01-20 23:08:30 +0100
committerTristan Darricau <github@nicofuma.fr>2015-01-21 08:41:02 +0100
commit7fef91afd28290ce268f671eb525dedf5ade944d (patch)
tree8d91bf49e6b4eadb7077396ebfa68a9bf3c2d5e4 /tests/event
parent8ef238ea73b481a717d8b68fb1fd7d1b8799d7f2 (diff)
downloadforums-7fef91afd28290ce268f671eb525dedf5ade944d.tar
forums-7fef91afd28290ce268f671eb525dedf5ade944d.tar.gz
forums-7fef91afd28290ce268f671eb525dedf5ade944d.tar.bz2
forums-7fef91afd28290ce268f671eb525dedf5ade944d.tar.xz
forums-7fef91afd28290ce268f671eb525dedf5ade944d.zip
[ticket/13361] Rename exception to runtime_exception
PHPBB3-13361
Diffstat (limited to 'tests/event')
-rw-r--r--tests/event/exception_listener_test.php (renamed from tests/event/exception_listener.php)4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/event/exception_listener.php b/tests/event/exception_listener_test.php
index 9d6b70e2d3..4d3453cd83 100644
--- a/tests/event/exception_listener.php
+++ b/tests/event/exception_listener_test.php
@@ -35,7 +35,7 @@ class exception_listener extends phpbb_test_case
),
array(
true,
- new \phpbb\exception\exception('AJAX_ERROR_TEXT'),
+ new \phpbb\exception\runtime_exception('AJAX_ERROR_TEXT'),
array(
'status_code' => 500,
'content' => 'Something went wrong when processing your request.',
@@ -84,7 +84,7 @@ class exception_listener extends phpbb_test_case
$exception_listener = new \phpbb\event\kernel_exception_subscriber($template, $user);
- $event = new \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent(new \phpbb\kernel('test'), $request, \Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST, $exception);
+ $event = new \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent($this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface'), $request, \Symfony\Component\HttpKernel\HttpKernelInterface::MASTER_REQUEST, $exception);
$exception_listener->on_kernel_exception($event);
$response = $event->getResponse();