Created
July 13, 2010 15:02
-
-
Save photuris/473995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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