* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfTestBrowser simulates a browser which can test a symfony application. * * sfTestFunctional is backward compatible class for symfony 1.0, and 1.1. * For new code, you can use the sfTestFunctional class directly. * * @package symfony * @subpackage test * @author Fabien Potencier * @version SVN: $Id: sfTestBrowser.class.php 15797 2009-02-26 09:28:12Z fabien $ */ class sfTestBrowser extends sfTestFunctional { /** * Initializes the browser tester instance. * * @param string $hostname Hostname to browse * @param string $remote Remote address to spook * @param array $options Options for sfBrowser */ public function __construct($hostname = null, $remote = null, $options = array()) { if (is_object($hostname)) { // new signature parent::__construct($hostname, $remote); } else { $browser = new sfBrowser($hostname, $remote, $options); if (is_null(self::$test)) { $lime = new lime_test(null, isset($options['output']) ? $options['output'] : new lime_output_color()); } else { $lime = null; } parent::__construct($browser, $lime); } } }