Skip to content

Commit

Permalink
chore: symfony dev tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Nov 18, 2024
1 parent f251ed1 commit be69688
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/Symfony/Routing/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,6 @@ public function testMatch(): void
$this->assertEquals(['bar'], $router->match('/app_dev.php/foo'));
}

public function testMatchWithInvalidContext(): void
{
$this->expectException(RoutingExceptionInterface::class);
$this->expectExceptionMessage('Invalid request context.');
$context = new RequestContext('/app_dev.php', 'GET', 'localhost', 'https');

$mockedRouter = $this->prophesize(RouterInterface::class);
$mockedRouter->getContext()->willReturn($context)->shouldBeCalled();

$router = new Router($mockedRouter->reveal());
$router->match('28-01-2018 10:10');
}

public function testMatchDuplicatedBaseUrl(): void
{
$context = new RequestContext('/app', 'GET', 'localhost', 'https');
Expand Down

0 comments on commit be69688

Please sign in to comment.