Skip to content

Instantly share code, notes, and snippets.

@dannykopping
Created March 29, 2012 20:26
Show Gist options
  • Save dannykopping/2243374 to your computer and use it in GitHub Desktop.
Save dannykopping/2243374 to your computer and use it in GitHub Desktop.
Behat Awesomeness
Feature: Testing the REST functionality of Aerial Framework
with Slim Framework and Guzzle
Scenario: Fetching a simple JSON response # features/rest.feature:4
Given that I pass no parameters # FeatureContext::thatIPassNoParameters()
When I call "/internal/test/simple" # FeatureContext::iCall()
Then the response is JSON # FeatureContext::theResponseIsJson()
Then the response status code should be 200 # FeatureContext::theResponseStatusCodeShouldBe()
1 scenario (1 passed)
4 steps (4 passed)
0m0.049s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment