You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently we've started using BDD with Behat, which basically creates functions in classes like the following
/** * @Given /^there should be (\d+) items? in the cart$/ */publicfunction thereShouldBeItemsInTheCart(int$arg1)
The @Given keyword is used by Behat to search for appropriate functions to run during a test like
Scenario: Testing adding to cart
Given there should be 1 item in the cart
Then add another item to cart
The @Given, @When and @Then keywords via annotations are incorrectly marked as missing.
If possible it'd be great to have these be available for autocompletion at all times (no imports are required in this case), but not show up as a warning when being used without an import.
Perhaps mark them with a weak warning when they've actually been imported?
The text was updated successfully, but these errors were encountered:
Recently we've started using BDD with Behat, which basically creates functions in classes like the following
The
@Given
keyword is used by Behat to search for appropriate functions to run during a test likeThe
@Given
,@When
and@Then
keywords via annotations are incorrectly marked as missing.If possible it'd be great to have these be available for autocompletion at all times (no imports are required in this case), but not show up as a warning when being used without an import.
Perhaps mark them with a weak warning when they've actually been imported?
The text was updated successfully, but these errors were encountered: