Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Creating a Silex application from Gherkin feature file

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 www
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
README.md

Create a Silex application from this file:

Feature: application API

     Scenario: List users
       Given url "/api/users/list.json"
       And request method is "GET"
       Then instance "\Api\Users"
       And execute function "listUsers"
       And format output into json

     Scenario: Get user info
       Given url "/api/user/{userName}.json"
       And request method is "GET"
       Then instance "\Api\User"
       And execute function "info"
       And format output into json

     Scenario: Update user information
       Given url "/api/user/{userName}.json"
       And request method is "POST"
       Then instance "\Api\User"
       And execute function "update"
       And format output into json

Something went wrong with that request. Please try again.