Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug in PHPUnit_Framework_Constraint_Count #1125

Merged
merged 1 commit into from
Jan 30, 2014
Merged

Fixed a bug in PHPUnit_Framework_Constraint_Count #1125

merged 1 commit into from
Jan 30, 2014

Conversation

drjayvee
Copy link

For instances of Iterator, it called iterator_count,
which (unfortunately) changes the instance's key. This fix rewinds the iterator's key to where it was.

See #1124

For instances of Iterator, it called [iterator_count](php.net/manual/en/function.iterator-count.php),
which (unfortunately) changes the instance's key. This fix `rewind`s the iterator's key to where it was
sebastianbergmann added a commit that referenced this pull request Jan 30, 2014
Fixed a bug in PHPUnit_Framework_Constraint_Count
@sebastianbergmann sebastianbergmann merged commit c30d791 into sebastianbergmann:3.7 Jan 30, 2014
@sebastianbergmann
Copy link
Owner

Thank you for your contribution!

@drjayvee
Copy link
Author

Gern geschehen!

jmikola added a commit to jmikola/phpunit that referenced this pull request May 22, 2017
This allows generators (sebastianbergmann#2149) and internal Traversables (sebastianbergmann#2642) to be properly detected before attempting to restore the Iterator's position after counting (sebastianbergmann#1125).
sebastianbergmann pushed a commit that referenced this pull request Jun 1, 2017
This allows generators (#2149) and internal Traversables (#2642) to be properly detected before attempting to restore the Iterator's position after counting (#1125).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants