@@ -154,7 +154,7 @@ public function testSetNestedElement()
154
154
$ this ->assertSame (Arr::setNestedElement ($ array , 'key1.key2 ' , ['key3 ' => 'test ' ]), Arr::set ($ array , 'key1.key2 ' , ['key3 ' => 'test ' ]));
155
155
}
156
156
157
- public function testUnset ()
157
+ public function testRemove ()
158
158
{
159
159
$ array = [
160
160
'test ' => [
@@ -169,15 +169,15 @@ public function testUnset()
169
169
],
170
170
];
171
171
172
- $ this ->assertSame ([], Arr::unset ($ array , 'test ' ));
172
+ $ this ->assertSame ([], Arr::remove ($ array , 'test ' ));
173
173
$ this ->assertSame ([
174
174
'test ' => [
175
175
'test1 ' ,
176
176
[
177
177
'test6 ' => 'def '
178
178
],
179
179
],
180
- ], Arr::unset ($ array , 'test.test2 ' ));
180
+ ], Arr::remove ($ array , 'test.test2 ' ));
181
181
182
182
$ this ->assertSame ([
183
183
'test ' => [
@@ -189,7 +189,7 @@ public function testUnset()
189
189
'test6 ' => 'def '
190
190
],
191
191
]
192
- ], Arr::unset ($ array , 'test.0 ' ));
192
+ ], Arr::remove ($ array , 'test.0 ' ));
193
193
194
194
$ this ->assertSame ([
195
195
'test ' => [
@@ -201,7 +201,7 @@ public function testUnset()
201
201
'test6 ' => 'def '
202
202
],
203
203
],
204
- ], Arr::unset ($ array , 'test.test2.test3 ' ));
204
+ ], Arr::remove ($ array , 'test.test2.test3 ' ));
205
205
206
206
$ this ->assertSame ([
207
207
'test ' => [
@@ -212,13 +212,13 @@ public function testUnset()
212
212
],
213
213
[],
214
214
],
215
- ], Arr::unset ($ array , 'test.1.test6 ' ));
215
+ ], Arr::remove ($ array , 'test.1.test6 ' ));
216
216
217
- $ this ->assertSame ($ array , Arr::unset ($ array , '0 ' ));
218
- $ this ->assertSame ($ array , Arr::unset ($ array , 'test.test1 ' ));
219
- $ this ->assertSame ($ array , Arr::unset ($ array , 'test.test2.test4 ' ));
220
- $ this ->assertSame ($ array , Arr::unset ($ array , 'test.test2.test4.test5.test6.abc ' ));
221
- $ this ->assertSame ($ array , Arr::unset ($ array , 'test.2 ' ));
217
+ $ this ->assertSame ($ array , Arr::remove ($ array , '0 ' ));
218
+ $ this ->assertSame ($ array , Arr::remove ($ array , 'test.test1 ' ));
219
+ $ this ->assertSame ($ array , Arr::remove ($ array , 'test.test2.test4 ' ));
220
+ $ this ->assertSame ($ array , Arr::remove ($ array , 'test.test2.test4.test5.test6.abc ' ));
221
+ $ this ->assertSame ($ array , Arr::remove ($ array , 'test.2 ' ));
222
222
}
223
223
224
224
public function testPack ()
0 commit comments