Best way to get autocomplete for $this with beforeEach?
#1469
Unanswered
faustbrian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using
beforeEachwith$thisthere won't be proper autocomplete since$thisreferences the current test case, not the current class like with a PHPUnit test case. Is there any way to get properly autocomplete into tests so that in the below example the$this->arrayMapperwould actually be inspectable in an IDE and provide autocomplete?@varand@propertydon't see to do anything in PHPStorm nor VSCode.Beta Was this translation helpful? Give feedback.
All reactions