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

Feature/102 #107

Merged
merged 4 commits into from
Sep 5, 2021
Merged

Feature/102 #107

merged 4 commits into from
Sep 5, 2021

Conversation

MaxGoryunov
Copy link
Owner

This PR solves #102 . Reset behaviour is now tested.

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2021

Codecov Report

Merging #107 (5e566c7) into master (daaff71) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##              master      #107   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        34        34           
===========================================
  Files              8         8           
  Lines             72        72           
===========================================
  Hits              72        72           
Flag Coverage Δ
tests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/ArrayAddingIterator.php 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daaff71...5e566c7. Read the comment docs.

Copy link
Owner Author

@MaxGoryunov MaxGoryunov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is fine.

Comment on lines -85 to -87
/**
* @todo #95:15min Reset behaviour for array is not covered.
*/
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed marker.

Comment on lines +102 to +107
public function testGivesSameResultsOverDifferentIterations(): void
{
$iterator = new ArrayAddingIterator([4, 3, 85, 48, 19, 53]);
$this->assertEquals(
iterator_to_array($iterator),
iterator_to_array($iterator)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided not to test this with TimesCalled to make it simpler.

@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@MaxGoryunov MaxGoryunov merged commit 0d43c58 into master Sep 5, 2021
@MaxGoryunov MaxGoryunov deleted the feature/102 branch September 5, 2021 20:19
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.

None yet

2 participants