with('request')->begin()-> isParameter('module', 'invoice')-> isParameter('action', 'index')-> end()-> with('response')->begin()-> isStatusCode(200)-> checkElement('body', '!/This is a temporary page/')-> end() ; */ $b = new sfTestBrowser(); $b->initialize(); $b->get('/customer/new')->setField('customer[name]', 'dummy')->click('Save')->with('response')->begin()->isRedirected()->followRedirect()->end()->with('request')->begin()->isParameter('name', 'dummy')->isParameter('module', 'customer')->isParameter('action', 'edit')->end(); $request = $b->getRequest(); $context = $b->getContext(); $response = $b->getResponse(); foreach ($request as $key => $value) { echo $key . "=>" . $value; } /* //--------------------calling pages-------------------- // Create a new test browser $b = new sfTestBrowser(); $b->initialize(); $b->get('/foobar/show/id/1'); // GET request $b->post('/foobar/show', array('id' => 1)); // POST request // The get() and post() methods are shortcuts to the call() method