bab/tested-routes-checker-bundle
RouteServiceProvider, web.php, api.php) can be mapped to Symfony’s routing abstraction.var/cache/...) to store route calls. Laravel’s storage/ or bootstrap/cache/ could serve as equivalents, requiring minimal adaptation.Routing and HttpKernel components, necessitating:
RouteCollection.Testing facade).phpunit.xml and tests/ structure are compatible, but the bundle’s CLI command (bab:tested-routes-checker:check) would need a Laravel-specific facade (e.g., php artisan bab:check-routes)._locale parameters). Laravel’s route localization (via Route::localization() or packages like spatie/laravel-localization) would require mapping to Symfony’s Route objects.RouteCollection, Route objects) for Laravel’s router (Illuminate\Routing\Router) is non-trivial but manageable with a wrapper layer.
Route objects include middleware; Laravel’s Route objects do not).var/cache/ → Laravel’s storage/framework/cache/).Http::fake() or Testing::fake() might interfere; a custom TestRequestListener would be needed.storage/ instead of var/cache/).{id}) handled in the bundle’s storage vs. Laravel’s route caching?auth, throttle) that might block certain routes during testing?.bab-trc-baseline file ignores routes. How would this translate to Laravel’s test exclusions (e.g., ignoreRoutes() in phpunit.xml)?_controller, _route) as Symfony? If not, how would the bundle adapt?bab:tested-routes-checker:check command be exposed in Laravel (e.g., as a custom Artisan command or facade)?config('app.env')) or route caching differences?RouteCollection with Laravel’s Router instance, adapting route parameter extraction.FileCache or ArrayCache to store tested routes in storage/framework/cache/bab_tested_routes.php artisan bab:check-routes).Testing facade to intercept HTTP calls during test execution.symfony/routing and symfony/http-kernel are critical. These could be replaced with Laravel’s native classes or minimal polyfills.phpunit-bridge would need a Laravel-specific alternative (e.g., orchestra/testbench).bab/laravel-tested-routes-checker) that:
Router to log route hits.RouteCollection with a Laravel-compatible version.laravel/laravel skeleton)..bab-trc-baseline) as a Laravel config file (config/bab-trc.php).Route object to include guard info).RouteServiceProvider and API route groups.file, database, and redis cache drivers for flexibility.Testing facade or create a TestedRoutesServiceProvider to log routes during tests.TestedRouteStorage class using Laravel’s cache.CheckRoutesCommand to compare stored routes against the baseline.php artisan bab:check-routes in tests/Feature/RouteCoverageTest.php).middleware, name) in later iterations.routes/ files will require updating the baseline or test suite.route:list) may need integration for deeper insights.auth) may appear untested. Documentation should clarify how to handle these cases.bab_tested_routes_checker_bundle_route_storage) could grow large with thousands of routes. Laravel’s cache drivers (e.g., Redis) would mitigate this.Http::fake() or Testing::ignore(), routes may not be logged. Clear documentation isHow can I help you explore Laravel packages today?