Add test for #4517,#3211
Fix #4517
Update tests from foreach to iterator
Add to check valid
Update tests for #4517
#6825 - minor CS fixes (removing unneeded parenthetical)
#6825 - adding missing `@group` annotations for newly introduced tests
Merge branch 'hotfix/#6825-zend-navigation-recursive-iterator-compatibility'

Close #6825
Close #4517