本文整理汇总了PHP中sfTestFunctional::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP sfTestFunctional::__construct方法的具体用法?PHP sfTestFunctional::__construct怎么用?PHP sfTestFunctional::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfTestFunctional
的用法示例。
在下文中一共展示了sfTestFunctional::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initializes the browser tester instance.
*
* @param sfBrowserBase $browser A sfBrowserBase instance
* @param lime_test $lime A lime instance
*/
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
// Since symfony 1.4.5
if ($lime === null) {
$lime = new lime_test(0, array('error_reporting' => true, 'verbose' => true));
}
$testers = array_merge(array('view_cache' => 'sfTesterViewCache', 'form' => 'sfTesterForm'), $testers);
parent::__construct($browser, $lime, $testers);
}
示例2: __construct
/**
* 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());
}
parent::__construct($browser, $lime);
}
}
示例3: __construct
/**
* Override to always load in the doctrine tester
*/
public function __construct($hostname = null, $remote = null, $options = array())
{
parent::__construct($hostname, $remote, $options);
$this->setTester('doctrine', 'sfTesterDoctrine');
}
示例4: __construct
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
parent::__construct($browser, $lime, $testers);
$this->utility = new otkTestUtility();
}
示例5: __construct
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
$lime = $lime ? $lime : new SeoLimeTest($this->_comments);
parent::__construct($browser, $lime, $testers);
}
示例6: __construct
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
$testers = array_merge(array('html_escape' => 'opTesterHtmlEscape'), $testers);
parent::__construct($browser, $lime, $testers);
}
示例7: __construct
/**
* Initializes the browser tester instance.
*
* @param sfBrowserBase $browser A sfBrowserBase instance
* @param lime_test $lime A lime instance
*/
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
$testers = array_merge($testers, array('response' => 'dmTesterResponse'));
parent::__construct($browser, $lime, $testers);
}
示例8: __construct
/**
* DOCUMENT ME
* @param sfBrowserBase $browser
* @param lime_test $lime
* @param mixed $testers
*/
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
parent::__construct($browser, $lime, $testers);
aTestTools::loadData($this);
}
示例9: __construct
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
parent::__construct($browser, $lime, $testers);
$this->setTester('doctrine', 'sfTesterDoctrine');
}