When I try to run a functional test on Symfony 4, I get this:
The routing file "{__PATH__}config/routes/admin.yaml" contains unsupported keys for "admin_home": "controller". Expected one of: "resource", "type", "prefix", "path", "host", "schemes", "methods", "defaults", "requirements", "options", "condition", "ControllerTest"
I don't understand why because my routing configuration follows the official documentation:
admin_home:
path: ''
controller: App\Controller\Admin\HomeController::home
Official doc: http://symfony.com/doc/current/routing.html (in YAML tabs, I didn't install the annotations package). Where "controller" is a supported key.
I installed the PHPUnit package composer require --dev symfony/phpunit-bridge then I run ./vendor/bin/simple-phpunit.
defaults: { _controller: App\Controller\Admin\HomeController::home }