Commit 60baeadc authored by Daniel Tschinder's avatar Daniel Tschinder

Remove unused imports and fix docblock for exceptions

parent 69756f95
...@@ -20,7 +20,6 @@ use Symfony\Component\HttpFoundation\Request; ...@@ -20,7 +20,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Debug\ErrorHandler; use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
...@@ -378,7 +377,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -378,7 +377,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException RuntimeException * @expectedException \RuntimeException
*/ */
public function testNonResponseAndNonNullReturnFromRouteBeforeMiddlewareShouldThrowRuntimeException() public function testNonResponseAndNonNullReturnFromRouteBeforeMiddlewareShouldThrowRuntimeException()
{ {
...@@ -397,7 +396,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -397,7 +396,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException RuntimeException * @expectedException \RuntimeException
*/ */
public function testNonResponseAndNonNullReturnFromRouteAfterMiddlewareShouldThrowRuntimeException() public function testNonResponseAndNonNullReturnFromRouteAfterMiddlewareShouldThrowRuntimeException()
{ {
...@@ -416,7 +415,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -416,7 +415,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException RuntimeException * @expectedException \RuntimeException
*/ */
public function testAccessingRequestOutsideOfScopeShouldThrowRuntimeException() public function testAccessingRequestOutsideOfScopeShouldThrowRuntimeException()
{ {
...@@ -426,7 +425,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -426,7 +425,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException RuntimeException * @expectedException \RuntimeException
*/ */
public function testAccessingRequestOutsideOfScopeShouldThrowRuntimeExceptionAfterHandling() public function testAccessingRequestOutsideOfScopeShouldThrowRuntimeExceptionAfterHandling()
{ {
......
...@@ -16,7 +16,6 @@ use Silex\Application; ...@@ -16,7 +16,6 @@ use Silex\Application;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/** /**
* Router test cases. * Router test cases.
...@@ -97,7 +96,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase ...@@ -97,7 +96,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/ */
public function testMissingRoute() public function testMissingRoute()
{ {
......
...@@ -14,7 +14,6 @@ namespace Silex\Tests; ...@@ -14,7 +14,6 @@ namespace Silex\Tests;
use Silex\Application; use Silex\Application;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\StreamedResponse;
/** /**
* Stream test cases. * Stream test cases.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment