/** * setUp function. * * @access public * @return void */ public function __construct() { parent::__construct(); // Set the tested controller $this->_ci =& set_controller('welcome'); $this->_ci->router->class = 'welcome'; }
public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); // 初始化 一个啥都不设置的用户 $this->_only_reg_user_info = array('user_id' => 3, 'accout_bank_id' => 1, 'jx_card_number' => '6212461300000000175', 'bank_card_number' => '6226628812138000', 'card_id' => '350583199010063179', 'real_name' => '吴斌杰'); $this->_only_reg_user_info['CUSTID'] = $this->_only_reg_user_info['card_id']; $this->_only_reg_user_info['CARDNBR'] = $this->_only_reg_user_info['jx_card_number']; $this->_only_reg_user_info['IDNO'] = $this->_only_reg_user_info['card_id']; $this->_only_reg_user_info['SURNAME'] = $this->_only_reg_user_info['real_name']; $this->_only_reg_user_info['SIG_CARD'] = $this->_only_reg_user_info['bank_card_number']; }
public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); // 初始化 一个有钱的账户 $this->_has_account_user = array('user_id' => 4, 'accout_bank_id' => 2, 'jx_card_number' => '6212461300000000217', 'bank_card_number' => '6226628812138001', 'card_id' => '230119198905201320', 'phone' => '13810556552', 'real_name' => '李雪萍'); $this->_has_account_user['CUSTID'] = $this->_has_account_user['card_id']; $this->_has_account_user['CARDNBR'] = $this->_has_account_user['jx_card_number']; $this->_has_account_user['IDNO'] = $this->_has_account_user['card_id']; $this->_has_account_user['SURNAME'] = $this->_has_account_user['real_name']; $this->_has_account_user['SIG_CARD'] = $this->_has_account_user['bank_card_number']; $this->_has_account_user['MOBILE'] = $this->_has_account_user['phone']; /********************************/ // 邦卡测试账号 $this->_bind_card_test_user = array('user_id' => 8, 'accout_bank_id' => 6, 'jx_card_number' => '6212461300000000258', 'bank_card_number' => '6226628812138005', 'card_id' => '511702197701193532', 'phone' => '13489242460', 'real_name' => '小李子'); $this->_bind_card_test_user['CUSTID'] = $this->_bind_card_test_user['card_id']; $this->_bind_card_test_user['CARDNBR'] = $this->_bind_card_test_user['jx_card_number']; $this->_bind_card_test_user['IDNO'] = $this->_bind_card_test_user['card_id']; $this->_bind_card_test_user['SURNAME'] = $this->_bind_card_test_user['real_name']; $this->_bind_card_test_user['SIG_CARD'] = $this->_bind_card_test_user['bank_card_number']; $this->_bind_card_test_user['MOBILE'] = $this->_bind_card_test_user['phone']; }
public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); }
public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->authcode = '1234'; $this->smscode = '123456'; }
/** * Mostly here to hush up errors and set common environment * variables needed to mock a request * * @return void */ public function __construct() { parent::__construct(); $this->setServer(array('SERVER_NAME' => 'openvbx.local', 'HTTP_HOST' => 'openvbx.local')); }
public function __construct($name = NULL, array $data = array(), $dataName = '') { $this->app_authcode = '1234'; parent::__construct($name, $data, $dataName); }
public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); $this->users = Spyc::YAMLLoad(dirname(__FILE__) . "/../fixtures/user_fixt.yml"); shuffle($this->users); }