« Programmation PHP/Behat » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Ligne 15 :
Feature: Withdraw Money from ATM
 
Texte libre
A user with an account at a bank would like to withdraw money from an ATM.
 
Provided he has a valid account and debit or credit card, he should be allowed to make the transaction. The ATM will tend the requested amount of money, return his card, and subtract amount of the withdrawal from the user's account.
 
Scenario: Scenario 1
Ligne 26 ⟶ 24 :
Scenario: Scenario 2
...
</source>
 
<source lang="cucumber">
Scenario: Eric wants to withdraw money from his bank account at an ATM
Given Eric has a valid Credit or Debit card
And his account balance is $100
When he inserts his card
And withdraws $45
Then the ATM should return $45
And his account balance is $55
</source>