Skip to content

Commit 620bf40

Browse files
committed
Move ArrayUtil tests under ArrayUtilTest
1 parent 712f355 commit 620bf40

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

tests/PHPCurlClass/ArrayUtilTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@
77

88
class ArrayUtilTest extends \PHPUnit\Framework\TestCase
99
{
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+
1028
public function testCaseInsensitiveArrayIsArrayAssoc()
1129
{
1230
$array = new CaseInsensitiveArray();

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ public function testExtensionsLoaded()
1717
$this->assertTrue(extension_loaded('mbstring'));
1818
}
1919

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-
3820
public function testCaseInsensitiveArrayGet()
3921
{
4022
$array = new CaseInsensitiveArray();

0 commit comments

Comments
 (0)