Skip to content

Instantly share code, notes, and snippets.

@everzet
Created July 16, 2010 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everzet/478885 to your computer and use it in GitHub Desktop.
Save everzet/478885 to your computer and use it in GitHub Desktop.
Feature: Homepage
Scenario: Index page
Given I am on homepage
When I go to main/index
Then Response status code is 200
And I should see "This is a temporary page"
#--------------------------------------------------------------
#<?php
#
# include(dirname(__FILE__).'/../../bootstrap/functional.php');
#
# $browser = new sfTestFunctional(new sfBrowser());
#
# $browser->
# get('/main/index')->
#
# with('request')->begin()->
# isParameter('module', 'article')->
# isParameter('action', 'index')->
# end()->
#
# with('response')->begin()->
# isStatusCode(200)->
# checkElement('body', '!/This is a temporary page/')->
# end()
# ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment