public function testAddClosure()
{
$this->if($filter = new testedClass(new \recursiveArrayIterator(array())))->then->object($filter->addClosure($closure = function () {
}))->isIdenticalTo($filter)->array($filter->getClosures())->isEqualTo(array($closure))->object($filter->addClosure($otherClosure = function () {
}))->isIdenticalTo($filter)->array($filter->getClosures())->isEqualTo(array($closure, $otherClosure));
}