Move ArrayUtil tests under ArrayUtilTest

This commit is contained in:
Zach Borboa
2021-07-26 21:48:17 -04:00
parent 712f3555bc
commit 620bf40691
2 changed files with 18 additions and 18 deletions
+18
View File
@@ -7,6 +7,24 @@ use Curl\CaseInsensitiveArray;
class ArrayUtilTest extends \PHPUnit\Framework\TestCase
{
public function testArrayAssociative()
{
$this->assertTrue(\Curl\ArrayUtil::isArrayAssoc([
'foo' => 'wibble',
'bar' => 'wubble',
'baz' => 'wobble',
]));
}
public function testArrayIndexed()
{
$this->assertFalse(\Curl\ArrayUtil::isArrayAssoc([
'wibble',
'wubble',
'wobble',
]));
}
public function testCaseInsensitiveArrayIsArrayAssoc()
{
$array = new CaseInsensitiveArray();