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
beforeEach
with$this
there won't be proper autocomplete since$this
references 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->arrayMapper
would actually be inspectable in an IDE and provide autocomplete?@var
and@property
don't see to do anything in PHPStorm nor VSCode.Beta Was this translation helpful? Give feedback.
All reactions