I am using phpspec to test our application. Now we need to develop some commands and therefore I want to spec these as well.
I am a bit stuck here, because the docs (http://symfony.com/doc/master/cookbook/console/console_command.html#testing-commands) only tell me how to test the commands using phpunit.
Even if I would use a similar approach (creating the kernel somehow, and instantiating the command in question) in the specs I think that this would not follow the idea of describing behaviour. I would only spec, whether the output is correct or not, but not if the command is calling the right methods and so on.
Has anyone used phpspec to successfully describe Symfony2 commands? What would be a feasible approach of doing this?
Thanks