當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。