-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbstractHttpControllerTestCase raises an "Error: Class 'Sympfony\Component\Console\Command\Command not found" #38
Comments
This is correct because this component does not use symfony/console. And if I install the skeleton application with test support then included test Please check your application if you use |
I don't use Symfony/Console either... i'll check the other dependencies but i'll probably will need to (re)start from the skeleton application first and add up all the other dependencies... thanks anyway |
I'm sorry Just installed a new project as recommended from this page : https://docs.laminas.dev/laminas-mvc/quick-start/
I said Y to all optional packages proposed during the installation script make sure all dependencies are installed by running developer mode enabled NO OTHER dependencies -> i still got the Symfony\Console error it is the mvc skeleton application plain and simple... i don't understand. Here are the trace : |
The stack trace contains the problem:
The problem is not laminas-test. But I don't know why symfony/console is not installed when all packages are selected in the skeleton installer. laminas-cli also needs symfony/console. This must be checked. /cc @boesing |
However, the command is only added to the I'll check this and see if I can provide a fix. |
@froschdesign @weierophinney I wonder if we should add the
Imho, no one should create a new laminas package along with modules which are still not migrated until now, Maybe something we want to consider in the TSC tomorrow. Gonna add an agenda item. |
@haclong I've released |
BC Break Report
Summary
When testing my Laminas MVC application after upgrading the packages, i ran into this error :
"Error: Class 'Sympfony\Component\Console\Command\Command not found"
I have checked the current tutorial here : https://docs.laminas.dev/tutorials/unit-testing/#your-first-controller-test and here as well : https://docs.laminas.dev/laminas-test/phpunit/ and i couldn't find any reference to Symfony Component usage.
The error is raised when i use the $this->dispatch() method... which is quite blocking when using the AbstractHttpControllerTestCase...
Previous behavior
The previous behaviour :
The test passes with success
Current behavior
of course, no changes have been applied to the MyControllerTest neither in the MyController class
The test runs with the errors afore mentioned
How to reproduce
The text was updated successfully, but these errors were encountered: