From 47dcdf198a05a88a3cc88e42df47878d7e0ffb27 Mon Sep 17 00:00:00 2001 From: Samuel ROZE Date: Wed, 7 Jun 2017 09:25:31 +0100 Subject: [PATCH] Rename the `@When` step --- .../2.1/features/bootstrap/FeatureContext.php | 4 ++-- behat/symfony2-extension/2.1/features/demo.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/behat/symfony2-extension/2.1/features/bootstrap/FeatureContext.php b/behat/symfony2-extension/2.1/features/bootstrap/FeatureContext.php index 0835b5c7..3fbc2517 100644 --- a/behat/symfony2-extension/2.1/features/bootstrap/FeatureContext.php +++ b/behat/symfony2-extension/2.1/features/bootstrap/FeatureContext.php @@ -23,9 +23,9 @@ class FeatureContext implements Context } /** - * @When this is a demo scenario that sends a request to :path + * @When a demo scenario sends a request to :path */ - public function thisIsADemoScenarioThatSendsARequestTo(string $path) + public function aDemoScenarioSendsARequestTo(string $path) { $this->response = $this->kernel->handle(Request::create($path, 'GET')); } diff --git a/behat/symfony2-extension/2.1/features/demo.feature b/behat/symfony2-extension/2.1/features/demo.feature index 99a20383..31bf16dd 100644 --- a/behat/symfony2-extension/2.1/features/demo.feature +++ b/behat/symfony2-extension/2.1/features/demo.feature @@ -1,8 +1,8 @@ Feature: - In order to proves that the Behat Symfony extension is correctly installed + In order to prove that the Behat Symfony extension is correctly installed As a user I want to have a demo scenario Scenario: It receives a response from Symfony's kernel - When this is a demo scenario that sends a request to "/" + When a demo scenario sends a request to "/" Then the response should be received