Skip to content

Commit

Permalink
Tests: Rename SymfonyRouterTest to WebTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lastzero committed Jul 5, 2022
1 parent 746f7e2 commit d6c6b79
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Tests/Application/WebTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Symlex\Tests\Application;

use Psr\Container\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symlex\Router\Web\ErrorRouter;
Expand All @@ -13,7 +12,7 @@
* @author Michael Mayer <[email protected]>
* @license MIT
*/
class SymfonyRouterTest extends UnitTestCase
class WebTest extends UnitTestCase
{
public function testHandle()
{
Expand Down Expand Up @@ -68,7 +67,7 @@ public function testHandleStaticController()
/** @var Web $app */
$app = $container->get('app.web');

$app->get('/foo/{id}', 'Symlex\Tests\Application\SymfonyRouterTest::callableMethod');
$app->get('/foo/{id}', 'Symlex\Tests\Application\WebTest::callableMethod');

$request = Request::create('/foo/999', 'GET');

Expand All @@ -83,7 +82,7 @@ public function testHeadRequest()
/** @var Web $app */
$app = $container->get('app.web');

$app->get('/foo/{id}', 'Symlex\Tests\Application\SymfonyRouterTest::callableMethod');
$app->get('/foo/{id}', 'Symlex\Tests\Application\WebTest::callableMethod');

$request = Request::create('/foo/999', 'HEAD');

Expand Down

0 comments on commit d6c6b79

Please sign in to comment.