From 620bf406913ffa081d3c82a86304cf236256368f Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 26 Jul 2021 21:48:17 -0400 Subject: [PATCH] Move ArrayUtil tests under ArrayUtilTest --- tests/PHPCurlClass/ArrayUtilTest.php | 18 ++++++++++++++++++ tests/PHPCurlClass/PHPCurlClassTest.php | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/PHPCurlClass/ArrayUtilTest.php b/tests/PHPCurlClass/ArrayUtilTest.php index 95dc6a8..e501b2d 100644 --- a/tests/PHPCurlClass/ArrayUtilTest.php +++ b/tests/PHPCurlClass/ArrayUtilTest.php @@ -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(); diff --git a/tests/PHPCurlClass/PHPCurlClassTest.php b/tests/PHPCurlClass/PHPCurlClassTest.php index 33d5a8f..324d089 100644 --- a/tests/PHPCurlClass/PHPCurlClassTest.php +++ b/tests/PHPCurlClass/PHPCurlClassTest.php @@ -17,24 +17,6 @@ class CurlTest extends \PHPUnit\Framework\TestCase $this->assertTrue(extension_loaded('mbstring')); } - 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 testCaseInsensitiveArrayGet() { $array = new CaseInsensitiveArray();