[2.x] Support for panther
lsv opened this issue · comments
Describe the solution you'd like
A clear and concise description of what you want to happen.
Have two classes you can extend
use Liip\FunctionalTestBundle\Test\WebTestCase;
use Liip\FunctionalTestBundle\Test\PantherTestCase;
Where PantherTestCase
extends Symfony\Component\Panther\PantherTestCase
Another possible solution could be
Make a static::createPantherClient();
Which have the same funcionality as https://github.com/liip/LiipFunctionalTestBundle/blob/master/Test/WebTestCase.php#L776
Though, as of symfony 4.1 you should use self::$container
instead of $client->getContainer()
(https://symfony.com/doc/current/testing.html#accessing-the-container)
Panther provides a trait for using it with this bundle: https://github.com/symfony/panther#usage-with-other-testing-tools
Does it fit your needs?
Sure it works as expected with the trait, sorry about that.