*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$app = 'frontend';
if (!include(dirname(__FILE__).'/../bootstrap/functional.php'))
{
return;
}
$b = new sfTestBrowser();
$b->get('/escaping/on')
->with('request')->begin()
->isParameter('module', 'escaping')
->isParameter('action', 'on')
->end()
->with('response')->begin()
->isStatusCode(200)
->matches('#
Lorem <strong>ipsum</strong> dolor sit amet.
#')
->matches('#Lorem <strong>ipsum</strong> dolor sit amet.
#')
->matches('#Lorem <strong>ipsum</strong> dolor sit amet.
#')
->matches('#Lorem ipsum dolor sit amet.
#')
->matches('#Lorem <strong>ipsum</strong> dolor sit amet.
#')
->matches('#Lorem ipsum dolor sit amet.
#')
->checkElement('span.no', 2)
->end()
;
$b->get('/escaping/off')
->with('request')->begin()
->isParameter('module', 'escaping')
->isParameter('action', 'off')
->end()
->with('response')->begin()
->isStatusCode(200)
->matches('#Lorem ipsum dolor sit amet.
#')
->matches('#Lorem ipsum dolor sit amet.
#')
->end()
;