Skip to content

Commit

Permalink
Added test for the clear function.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverde8 committed Feb 17, 2017
1 parent 7d55317 commit aa1af7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/AssociativeArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,12 @@ public function testReadOnly() {

$array->set('aaa', []);
}

public function testClear()
{
$array = new AssociativeArray($this->recursiveData, '.');
$array->clear();

$this->assertEmpty($array->getArray());
}
}

0 comments on commit aa1af7c

Please sign in to comment.