@@ -31,85 +31,79 @@ public function providerBuildContact(): array
31
31
];
32
32
33
33
return [
34
- 'If all the elements are present, the correct json can be output. '
35
- => [
36
- array_merge ($ common , [
37
- 'contact ' => [
38
- 'name ' => 'sample_contact_name ' ,
39
- 'email ' => 'sample_contact_email ' ,
40
- 'url ' => 'sample_contact_url ' ,
41
- ],
42
- ]),
43
- array_merge ($ common , [
44
- 'contact ' => [
45
- 'name ' => 'sample_contact_name ' ,
46
- 'email ' => 'sample_contact_email ' ,
47
- 'url ' => 'sample_contact_url ' ,
48
- ],
49
- ]),
50
- ],
51
- 'If Contact.name does not exist, the correct json can be output. '
52
- => [
53
- array_merge ($ common , [
54
- 'contact ' => [
55
- 'email ' => 'sample_contact_email ' ,
56
- 'url ' => 'sample_contact_url ' ,
57
- ],
58
- ]),
59
- array_merge ($ common , [
60
- 'contact ' => [
61
- 'email ' => 'sample_contact_email ' ,
62
- 'url ' => 'sample_contact_url ' ,
63
- ],
64
- ]),
65
- ],
66
- 'If Contact.email does not exist, the correct json can be output. '
67
- => [
68
- array_merge ($ common , [
69
- 'contact ' => [
70
- 'name ' => 'sample_contact_name ' ,
71
- 'url ' => 'sample_contact_url ' ,
72
- ],
73
- ]),
74
- array_merge ($ common , [
75
- 'contact ' => [
76
- 'name ' => 'sample_contact_name ' ,
77
- 'url ' => 'sample_contact_url ' ,
78
- ],
79
- ]),
80
- ],
81
- 'If Contact.url does not exist, the correct json can be output. '
82
- => [
83
- array_merge ($ common , [
84
- 'contact ' => [
85
- 'name ' => 'sample_contact_name ' ,
86
- 'email ' => 'sample_contact_email ' ,
87
- ],
88
- ]),
89
- array_merge ($ common , [
90
- 'contact ' => [
91
- 'name ' => 'sample_contact_name ' ,
92
- 'email ' => 'sample_contact_email ' ,
93
- ],
94
- ]),
95
- ],
96
- 'If Contact does not exist, the correct json can be output. '
97
- => [
98
- array_merge ($ common ),
99
- array_merge ($ common ),
100
- ],
101
- 'If Contact.* does not exist, the correct json can be output. '
102
- => [
103
- array_merge ($ common , [
104
- 'contact ' => [],
105
- ]),
106
- array_merge ($ common ),
107
- ],
34
+ 'If all the elements are present, the correct json can be output. ' => [
35
+ array_merge ($ common , [
36
+ 'contact ' => [
37
+ 'name ' => 'sample_contact_name ' ,
38
+ 'email ' => 'sample_contact_email ' ,
39
+ 'url ' => 'sample_contact_url ' ,
40
+ ],
41
+ ]),
42
+ array_merge ($ common , [
43
+ 'contact ' => [
44
+ 'name ' => 'sample_contact_name ' ,
45
+ 'email ' => 'sample_contact_email ' ,
46
+ 'url ' => 'sample_contact_url ' ,
47
+ ],
48
+ ]),
49
+ ],
50
+ 'If Contact.name does not exist, the correct json can be output. ' => [
51
+ array_merge ($ common , [
52
+ 'contact ' => [
53
+ 'email ' => 'sample_contact_email ' ,
54
+ 'url ' => 'sample_contact_url ' ,
55
+ ],
56
+ ]),
57
+ array_merge ($ common , [
58
+ 'contact ' => [
59
+ 'email ' => 'sample_contact_email ' ,
60
+ 'url ' => 'sample_contact_url ' ,
61
+ ],
62
+ ]),
63
+ ],
64
+ 'If Contact.email does not exist, the correct json can be output. ' => [
65
+ array_merge ($ common , [
66
+ 'contact ' => [
67
+ 'name ' => 'sample_contact_name ' ,
68
+ 'url ' => 'sample_contact_url ' ,
69
+ ],
70
+ ]),
71
+ array_merge ($ common , [
72
+ 'contact ' => [
73
+ 'name ' => 'sample_contact_name ' ,
74
+ 'url ' => 'sample_contact_url ' ,
75
+ ],
76
+ ]),
77
+ ],
78
+ 'If Contact.url does not exist, the correct json can be output. ' => [
79
+ array_merge ($ common , [
80
+ 'contact ' => [
81
+ 'name ' => 'sample_contact_name ' ,
82
+ 'email ' => 'sample_contact_email ' ,
83
+ ],
84
+ ]),
85
+ array_merge ($ common , [
86
+ 'contact ' => [
87
+ 'name ' => 'sample_contact_name ' ,
88
+ 'email ' => 'sample_contact_email ' ,
89
+ ],
90
+ ]),
91
+ ],
92
+ 'If Contact does not exist, the correct json can be output. ' => [
93
+ array_merge ($ common ),
94
+ array_merge ($ common ),
95
+ ],
96
+ 'If Contact.* does not exist, the correct json can be output. ' => [
97
+ array_merge ($ common , [
98
+ 'contact ' => [],
99
+ ]),
100
+ array_merge ($ common ),
101
+ ],
108
102
];
109
103
}
110
104
111
105
/**
112
- * Assert equality as an associative array
106
+ * Assert equality as an associative array.
113
107
*
114
108
* @param array $expected
115
109
* @param array $actual
0 commit comments