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


PHP BaseTest::BaseTest方法代码示例

本文整理汇总了PHP中BaseTest::BaseTest方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseTest::BaseTest方法的具体用法?PHP BaseTest::BaseTest怎么用?PHP BaseTest::BaseTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseTest的用法示例。


在下文中一共展示了BaseTest::BaseTest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: DBVersionUnder

 function DBVersionUnder($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionUnder');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
开发者ID:patmark,项目名称:care2x-tz,代码行数:9,代码来源:DBVersionUnder.php

示例2: AdminPasswordConfirmed

 function AdminPasswordConfirmed($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you need to provide the password field names", ERRORSTACK_ERROR, 'AdminPasswordConfirmed');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:9,代码来源:AdminPasswordConfirmed.php

示例3: WritableLocation

 function WritableLocation($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you must provide at least one location to test.", ERRORSTACK_ERROR, 'WritableLocation');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:9,代码来源:WritableLocation.php

示例4: PHPVersionUnder

 function PHPVersionUnder($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, version to test against must be supplied as the only item in an array", ERRORSTACK_ERROR, 'PHPVersionUnder');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:9,代码来源:PHPVersionUnder.php

示例5: PHPMagicQuotes

 function PHPMagicQuotes($params)
 {
     parent::BaseTest($params);
     if (is_array($this->params) || count($this->params) < 0) {
         if ($params[0] != "On" && $params[0] != "Off") {
             ErrorStack::addError("Invalid parameters, must be On or Off", ERRORSTACK_ERROR, 'PHPMagicQuotes');
         }
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:11,代码来源:PHPMagicQuotes.php


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