File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 7
7
8
8
class ArrayUtilTest extends \PHPUnit \Framework \TestCase
9
9
{
10
+ public function testArrayAssociative ()
11
+ {
12
+ $ this ->assertTrue (\Curl \ArrayUtil::isArrayAssoc ([
13
+ 'foo ' => 'wibble ' ,
14
+ 'bar ' => 'wubble ' ,
15
+ 'baz ' => 'wobble ' ,
16
+ ]));
17
+ }
18
+
19
+ public function testArrayIndexed ()
20
+ {
21
+ $ this ->assertFalse (\Curl \ArrayUtil::isArrayAssoc ([
22
+ 'wibble ' ,
23
+ 'wubble ' ,
24
+ 'wobble ' ,
25
+ ]));
26
+ }
27
+
10
28
public function testCaseInsensitiveArrayIsArrayAssoc ()
11
29
{
12
30
$ array = new CaseInsensitiveArray ();
Original file line number Diff line number Diff line change @@ -17,24 +17,6 @@ public function testExtensionsLoaded()
17
17
$ this ->assertTrue (extension_loaded ('mbstring ' ));
18
18
}
19
19
20
- public function testArrayAssociative ()
21
- {
22
- $ this ->assertTrue (\Curl \ArrayUtil::isArrayAssoc ([
23
- 'foo ' => 'wibble ' ,
24
- 'bar ' => 'wubble ' ,
25
- 'baz ' => 'wobble ' ,
26
- ]));
27
- }
28
-
29
- public function testArrayIndexed ()
30
- {
31
- $ this ->assertFalse (\Curl \ArrayUtil::isArrayAssoc ([
32
- 'wibble ' ,
33
- 'wubble ' ,
34
- 'wobble ' ,
35
- ]));
36
- }
37
-
38
20
public function testCaseInsensitiveArrayGet ()
39
21
{
40
22
$ array = new CaseInsensitiveArray ();
You can’t perform that action at this time.
0 commit comments