当前位置: 首页>>代码示例>>PHP>>正文


PHP sfTestFunctional::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:limitium,项目名称:uberlov,代码行数:15,代码来源:swTestFunctional.class.php

示例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);
     }
 }
开发者ID:WIZARDISHUNGRY,项目名称:symfony,代码行数:20,代码来源:sfTestBrowser.class.php

示例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');
 }
开发者ID:bshaffer,项目名称:Donate-Nashville,代码行数:8,代码来源:dnTestFunctional.class.php

示例4: __construct

 public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
 {
     parent::__construct($browser, $lime, $testers);
     $this->utility = new otkTestUtility();
 }
开发者ID:rbolliger,项目名称:otokou,代码行数:5,代码来源:otokouApiTestFunctional.class.php

示例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);
 }
开发者ID:bshaffer,项目名称:Symplist,代码行数:5,代码来源:SeoTestFunctional.class.php

示例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);
 }
开发者ID:te-koyama,项目名称:openpne,代码行数:5,代码来源:opTestFunctional.class.php

示例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);
 }
开发者ID:theolymp,项目名称:diem,代码行数:11,代码来源:dmTestFunctional.php

示例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);
 }
开发者ID:hashir,项目名称:UoA,代码行数:11,代码来源:aTestFunctional.class.php

示例9: __construct

 public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
 {
     parent::__construct($browser, $lime, $testers);
     $this->setTester('doctrine', 'sfTesterDoctrine');
 }
开发者ID:kimbrelas,项目名称:mediaRepo,代码行数:5,代码来源:mrTestFunctional.class.php


注:本文中的sfTestFunctional::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。