Definition at line 13 of file IPAYEnrollTest.php.
◆ MIRProvider()
| IPAYEnrollTest::MIRProvider |
( |
| ) |
|
untested: malformed email w/o HCUcred['ml'] missing email w/o HCUcred['ml'] IPAYcred['enrollmicr'] true IPAYcred['enrollmicr'] true w/o HCUcred['micr'] IPAYcred['enrollmicr'] true w/ invalid HCUcred['micr'] missing reqMIR values other than email test BizFNdot all 3 settings
Definition at line 59 of file IPAYEnrollTest.php.
64 'valid packet' => [[
'data' =>
65 [
'accountnumber' =>
'22891',
66 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
67 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
68 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
69 'address1' =>
'373 Richland Ave',
'address2' =>
'',
70 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
71 'dob' =>
'1991-02-28',
'class' =>
'P']],
72 '<HomePhone>208-555-0228</HomePhone>'],
74 'business FNdot' => [[
'data' =>
75 [
'accountnumber' =>
'22891',
76 'firstname' =>
'',
'middlename' =>
'',
'lastname' =>
'Williams',
77 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
78 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
79 'address1' =>
'373 Richland Ave',
'address2' =>
'',
80 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
81 'dob' =>
'1991-02-28',
'class' =>
'']],
82 '<HomePhone>208-555-0228</HomePhone>'],
84 'business FNempty' => [[
'data' =>
85 [
'accountnumber' =>
'22891',
86 'firstname' =>
'',
'middlename' =>
'',
'lastname' =>
'Williams',
87 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
88 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
89 'address1' =>
'373 Richland Ave',
'address2' =>
'',
90 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
91 'dob' =>
'1991-02-28',
'class' =>
'']],
92 '<HomePhone>208-555-0228</HomePhone>'],
94 'business FNpass' => [[
'data' =>
95 [
'accountnumber' =>
'22891',
96 'firstname' =>
'',
'middlename' =>
'',
'lastname' =>
'Williams',
97 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
98 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
99 'address1' =>
'373 Richland Ave',
'address2' =>
'',
100 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
101 'dob' =>
'1991-02-28',
'class' =>
'']],
102 '<HomePhone>208-555-0228</HomePhone>'],
104 'missing birthday' => [[
'data' =>
105 [
'accountnumber' =>
'22891',
106 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
107 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
108 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
109 'address1' =>
'373 Richland Ave',
'address2' =>
'',
110 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
111 'dob' =>
'',
'class' =>
'P']],
112 '<HomePhone>208-555-0228</HomePhone>'],
114 'zeros birthday' => [[
'data' =>
115 [
'accountnumber' =>
'22891',
116 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
117 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
118 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
119 'address1' =>
'373 Richland Ave',
'address2' =>
'',
120 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
121 'dob' =>
'00-00-0000',
'class' =>
'P']],
122 '<HomePhone>208-555-0228</HomePhone>'],
124 'missing required' => [[
'data' =>
125 [
'accountnumber' =>
'22891',
126 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
127 'email' =>
'youngson@yahoo.com',
'homephone' =>
'208-555-0228',
128 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
129 'address1' =>
'',
'address2' =>
'',
130 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
131 'dob' =>
'1991-02-28',
'class' =>
'P']],
132 '<HomePhone>208-555-0228</HomePhone>'],
134 'malformed email' => [[
'data' =>
135 [
'accountnumber' =>
'22891',
136 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
137 'email' =>
'youngson.yahoo.com',
'homephone' =>
'208-555-0228',
138 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
139 'address1' =>
'373 Richland Ave',
'address2' =>
'',
140 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
141 'dob' =>
'1991-02-28',
'class' =>
'P']],
142 '<HomePhone>208-555-0228</HomePhone>'],
144 'badchar email' => [[
'data' =>
145 [
'accountnumber' =>
'22891',
146 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
147 'email' =>
'youngson#3@yahoo.com',
'homephone' =>
'208-555-0228',
148 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
149 'address1' =>
'373 Richland Ave',
'address2' =>
'',
150 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
151 'dob' =>
'1991-02-28',
'class' =>
'P']],
152 '<HomePhone>208-555-0228</HomePhone>'],
154 'missing MIRemail' => [[
'data' =>
155 [
'accountnumber' =>
'22891',
156 'firstname' =>
'Kevin',
'middlename' =>
'O',
'lastname' =>
'Williams',
157 'email' =>
'',
'homephone' =>
'208-555-0228',
158 'workphone' =>
'',
'cellphone' =>
'',
'fax' =>
'',
'ssn' =>
'228-29-3342',
159 'address1' =>
'373 Richland Ave',
'address2' =>
'',
160 'city' =>
'Shire',
'state' =>
'ID',
'zip' =>
'83111',
'cc' =>
'US',
161 'dob' =>
'1991-02-28',
'class' =>
'P']],
162 '<HomePhone>208-555-0228</HomePhone>'],
◆ test_EnrollXML_List()
| IPAYEnrollTest::test_EnrollXML_List |
( |
|
$MIR, |
|
|
|
$expected, |
|
|
|
$IPAYcred, |
|
|
|
$HCUcred |
|
) |
| |
@dataProvider MIRProvider @depends test_IPAYcred @depends test_HCUcred
Definition at line 49 of file IPAYEnrollTest.php.
51 $enrollXML = iPayV3EnrollXML($MIR, $IPAYcred, $HCUcred);
52 if ($expected ==
'') {
53 $this->assertEmpty($enrollXML[
'data'],
'Expected empty result is not empty',
false);
55 $this->assertContains($expected, $enrollXML[
'data'],
'Expected result not found',
false);
◆ test_HCUcred()
| IPAYEnrollTest::test_HCUcred |
( |
| ) |
|
set up the HCU credentials array
Definition at line 33 of file IPAYEnrollTest.php.
35 $this->assertTrue(
true);
36 $HCUcred = [
'billpayid' =>
'22891',
37 'ml' =>
'miki@homecu.com',
◆ test_IPAYcred()
| IPAYEnrollTest::test_IPAYcred |
( |
| ) |
|
set up the IPAY credentials array
Definition at line 18 of file IPAYEnrollTest.php.
20 $this->assertTrue(
true);
21 $IPAYcred = [
'ipay_instid' =>
'99999',
22 'ipay_iv' =>
'jee9Voofa7eiphai',
23 'ipay_key' =>
'vacomeehoh3oN1uY',
24 'ipay_token' =>
'2xx7J3+vcqPORqx5Q7uBIhLRVF7fTcxnG2S14HwkPp0=',
25 'random' => gmdate(
"U"),
The documentation for this class was generated from the following file: