Skip to content

Commit

Permalink
fix test symfony 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
orbeji committed Jan 17, 2024
1 parent 8268c86 commit d38d4b7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 40 deletions.
79 changes: 40 additions & 39 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,43 @@
{
"name": "orbeji/unused-routes",
"description": "",
"license": "MIT",
"type": "symfony-bundle",
"require": {
"php": ">=8.1",
"symfony/console": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"webmozart/assert": "^1.11"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.41",
"nyholm/symfony-bundle-test": "^3.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.5.5",
"rregeer/phpunit-coverage-check": "^0.3.1",
"squizlabs/php_codesniffer": "^3.8",
"symfony/phpunit-bridge": "^7.0.1"
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Orbeji\\UnusedRoutes\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Orbeji\\UnusedRoutes\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true,
"yceruto/bundle-flex": true
},
"sort-packages": true
"name": "orbeji/unused-routes",
"description": "",
"license": "MIT",
"type": "symfony-bundle",
"require": {
"php": ">=8.1",
"symfony/console": "^6.4 || ^7.0",
"symfony/flex": "^2.4",
"symfony/framework-bundle": "^6.4 || ^7.0",
"webmozart/assert": "^1.11"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.41",
"nyholm/symfony-bundle-test": "^3.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.5.5",
"rregeer/phpunit-coverage-check": "^0.3.1",
"squizlabs/php_codesniffer": "^3.8",
"symfony/phpunit-bridge": "^7.0.1"
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Orbeji\\UnusedRoutes\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Orbeji\\UnusedRoutes\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true,
"symfony/flex": true
},
"sort-packages": true
}
}
4 changes: 3 additions & 1 deletion tests/Helper/RouteUsageHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class RouteUsageHelperTest extends TestCase
{
public function testEmpty(): void
{
$router = $this->createStub(RouterInterface::class);
$router->method('getRouteCollection')->willReturn(new RouteCollection());
$routeUsageHelper = new RouteUsageHelper(
$this->createStub(UsageRouteProviderInterface::class),
$this->createStub(RouterInterface::class)
$router
);

$result = $routeUsageHelper->getRoutesUsage(false);
Expand Down

0 comments on commit d38d4b7

Please sign in to comment.