atoum / AtoumBundle

This bundle provides a simple integration of atoum into Symfony 2.
MIT License
44 stars 25 forks source link

Symfony 4 compatibility #112

Closed maxailloud closed 2 years ago

maxailloud commented 6 years ago

Add is_bundle option in the bundle configuration to be able to launch tests from a bundle-less application.

I don't know if it's the best way to go for it, but that's the solution I found at least. I did the minimum necessary to make it work.

maxailloud commented 5 years ago

Is this something needed for this PR to be merged?

mikaelrandy commented 5 years ago

Maybe the question is "is this check about a bundle still usefull ?" In sf4, application could be outside of a bundle, so we maybe need to remove this check.

maxailloud commented 5 years ago

That is exactly why I added this flag, for bundleless Symfony application. Because without it, or something similar, the root folder is not properly loaded and the tests not found.

klnjmm commented 5 years ago

I know that this PR is pretty old, but symfony 4 compatibility is not resolved.

protected function getKernelClass()
    {
        return 'App\Kernel';
    }

Maybe it will be good to add this in the documentation.

I can make a PR with all of these points, even if the second can be resolved by @maxailloud work.