本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}