mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-23 15:15:46 +00:00
Move ArrayUtil tests under ArrayUtilTest
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user