本文整理汇总了PHP中TestCase::location_expected方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::location_expected方法的具体用法?PHP TestCase::location_expected怎么用?PHP TestCase::location_expected使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestCase
的用法示例。
在下文中一共展示了TestCase::location_expected方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
if (self::$db_needed && !self::$db_has_transactions) {
$this->markTestSkipped('Database transactions are needed to test these features, but your "options" and "usermeta" tables are not using the InnoDB engine.');
}
self::$location_actual = null;
self::$location_expected = null;
self::$mail_file = null;
self::$mail_file_basename = null;
self::$lss->set_sleep(null);
self::$lss->is_xmlrpc = false;
self::$lss->skip_wp_login_failed = false;
self::$lss->user_pass = null;
self::$lss->xmlrpc_enabled = false;
$_SERVER['SERVER_PROTOCOL'] = 'http';
$this->user = new WP_User();
$this->user->data = new StdClass();
$this->user->ID = 9999999;
$this->user->user_login = 'test';
$this->user->user_email = 'bbbb';
$this->user->user_url = 'cccc';
$this->user->first_name = 'dddd';
$this->user->last_name = 'aaaa';
$this->user->nickname = 'fff@1F*8ffff';
$this->user->display_name = '简化字';
$this->user->aim = 'hhhhhhhh';
$this->user->yim = 'iiiiiiii';
$this->user->jabber = 'jjjjjjjj';
$this->user->user_pass = self::USER_PASS;
}