to the site So that I can share my animal knowledge with the community Scenario: successful submission Given I'm on the animal creation page When I fill in Name with 'Alligator' And select Phylum as 'Chordata' And fill in Animal Class with 'Sauropsida' And check Lay Eggs And click the Create button Then I should see the notice 'Thank you for your animal submission!' And the page should include the animal's name, phylum, animal class, order, family, and
to the site So that I can share my animal knowledge with the community Scenario: successful submission Given I'm on the animal creation page When I add a new animal Then I should see the page for my newly created animal And the notice 'Thank you for your animal submission!'
want to be able to calculate the sum of two strings. Scenario: Returns 0 when no string values are passed Given the current value to calculate is " " When I calculate the sum Then the sum value for " " is zero
iCalculateTheSum() { $output = (new Acme\Calculator())->calculate($this->value); } /** * @Then the sum value for :arg1 is zero */ public function theSumValueForIsZero($arg1) { expect($this->output)->toBe(0); }
the current value to calculate is " " When I calculate the sum Then the sum value for " " is zero --- Failed scenarios: features/feature-file.feature:5
should return zero when empty string is passed 20 ✔ should return the number for single number Feature: I can calculate string values As a user I want to be able to calculate the sum of two strings. Scenario: Returns 0 when no string values are passed Given the current value to calculate is " “ When I calculate the sum Then the sum value for " " is zero Scenario: Returns the number if only a single number is passed Given the current value to calculate is “1" When I calculate the sum Then the sum value for "1" is one