Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Apr 23, 2024
1 parent 041cb66 commit 07aa803
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/TwigRuntimeExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ protected function createRouteCollector(string $basePath): RouteCollector
* Map a route to the given route collector.
*
* @param RouteCollector $routeCollector
* @param array $methods
* @param string $pattern
* @param string $routeName
* @param array $methods
* @param string $pattern
* @param string $routeName
*
* @return RouteInterface
*/
Expand Down Expand Up @@ -79,11 +79,11 @@ public function isCurrentUrlProvider(): array
/**
* @dataProvider isCurrentUrlProvider
*
* @param string $pattern
* @param array $data
* @param string $path
* @param string $pattern
* @param array $data
* @param string $path
* @param string|null $basePath
* @param bool $expected
* @param bool $expected
*/
public function testIsCurrentUrl(string $pattern, array $data, string $path, ?string $basePath, bool $expected)
{
Expand Down Expand Up @@ -125,7 +125,7 @@ public function currentUrlProvider(): array
* @param string $pattern
* @param string $url
* @param string $basePath
* @param bool $withQueryString
* @param bool $withQueryString
*/
public function testCurrentUrl(string $pattern, string $url, string $basePath, bool $withQueryString)
{
Expand All @@ -138,7 +138,7 @@ public function testCurrentUrl(string $pattern, string $url, string $basePath, b
$uriProphecy = $this->prophesize(UriInterface::class);

$path = parse_url($url, PHP_URL_PATH);
$query = parse_url($url, PHP_URL_QUERY);
$query = parse_url($url, PHP_URL_QUERY) ?? '';

$uriProphecy
->getPath()
Expand Down Expand Up @@ -178,8 +178,8 @@ public function urlForProvider(): array
* @dataProvider urlForProvider
*
* @param string $pattern
* @param array $routeData
* @param array $queryParams
* @param array $routeData
* @param array $queryParams
* @param string $basePath
* @param string $expectedUrl
*/
Expand Down Expand Up @@ -224,8 +224,8 @@ public function fullUrlForProvider(): array
* @dataProvider fullUrlForProvider
*
* @param string $pattern
* @param array $routeData
* @param array $queryParams
* @param array $routeData
* @param array $queryParams
* @param string $basePath
* @param string $expectedFullUrl
*/
Expand Down

0 comments on commit 07aa803

Please sign in to comment.