« Programmation PHP/Behat » : différence entre les versions
Contenu supprimé Contenu ajouté
Aucun résumé des modifications |
|||
Ligne 6 :
http://behat.org/en/latest/
Lancer
== Syntaxe ==
<source lang="cucumber">
Feature: Function to test description
Ligne 27 ⟶ 24 :
== Exemples ==
<source lang="php">
use Behat\Behat\Context\Context;
class Context1 implements Context
{
public function iAmOnTheHomePage()
{
echo 'ok';
throw new PendingException();
}
}
</source>
<source lang="cucumber">
Feature: Visit the homepage
Scenario: Click a link from the homepage
Given I am on the homepage
</source>
{{...}}
|