Skip to content

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Aug 23, 2019

Without this patch, the following error is throw: A client must be set to make assertions on it. Did you forget to call "Symfony\Component\Panther\PantherTestCase::createClient()"?.

It's because getClient is private, and that the trait is imported in both WebTestCase and PantherTestCase. A better fix would be to make getClient private in Symfony. If done, it will be possible to revert this patch.

@dunglas dunglas merged commit f86d07b into symfony:master Aug 23, 2019
@dunglas dunglas deleted the fix-createClient branch August 23, 2019 19:10
@robertfausk
Copy link
Contributor

You are welcome.
Can you please tag a new release 0.5.1?

@dunglas
Copy link
Member Author

dunglas commented Aug 23, 2019

Yes I’m on it!

dunglas added a commit that referenced this pull request Dec 28, 2020
nicolas-grekas pushed a commit that referenced this pull request Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants