diff --git a/tests/AssociativeArrayTest.php b/tests/AssociativeArrayTest.php index fcf4f50..36814c8 100644 --- a/tests/AssociativeArrayTest.php +++ b/tests/AssociativeArrayTest.php @@ -187,4 +187,12 @@ public function testReadOnly() { $array->set('aaa', []); } + + public function testClear() + { + $array = new AssociativeArray($this->recursiveData, '.'); + $array->clear(); + + $this->assertEmpty($array->getArray()); + } }