Skip to content

Instantly share code, notes, and snippets.

@photuris
Created July 13, 2010 15:02
Show Gist options
  • Save photuris/473995 to your computer and use it in GitHub Desktop.
Save photuris/473995 to your computer and use it in GitHub Desktop.
<?php
$browser = new sfTestFunctional(new sfBrowser(), null,
array('response' => 'rsfTesterResponse'));
$browser
//--------------------//
// Home Page Is Valid //
//--------------------//
->info('Visit Home Page')
->get('/')
->info('Index goes to the right place')
->with('request')->begin()
->isParameter('module', 'content')
->isParameter('action', 'index')
->end()
->info('Web server returns proper code, page is correct')
->with('response')->begin()
->isStatusCode(200)
->checkElement('body', '!/This is a temporary page/')
->end()
// Bitchin!!!
->info('HTML is W3C valid')
->with('response')->begin()
->isValidXhtml()
->end()
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment