Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Finder] Partially revert #17134 to fix a regression#18065

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@jakzal
Copy link
Contributor

QA
Branch2.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18013
LicenseMIT
Doc PR-

@jakzal
Copy link
ContributorAuthor

I will not include a test case unless anyone thinks it's absolutely necessary or has a better idea than the test case below. It is rather fragile. It would also double test execution time for the finder component on travis. Finally, itfails on hhvm.

namespaceSymfony\Component\Finder\Tests\Iterator;useSymfony\Component\Finder\Iterator\DepthRangeFilterIterator;useSymfony\Component\Finder\Iterator\RecursiveDirectoryIterator;class DepthRangeFilterIteratorTestextends RealIteratorTestCase{// ...publicfunctiontestFtp()    {$inner =new \RecursiveIteratorIterator(newRecursiveDirectoryIterator('ftp://speedtest.tele2.net/', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST);$iterator =newDepthRangeFilterIterator($inner,0,0);$files =iterator_to_array($iterator);$this->assertArrayHasKey('ftp://speedtest.tele2.net/1000GB.zip',$files);$this->assertArrayHasKey('ftp://speedtest.tele2.net/100GB.zip',$files);$this->assertArrayHasKey('ftp://speedtest.tele2.net/10GB.zip',$files);$this->assertArrayHasKey('ftp://speedtest.tele2.net/1GB.zip',$files);    }}

@fabpot
Copy link
Member

@jakzal I think a small comment above the code to explain the reason why we have such a code would probably help any future regressions and should be enough.

@jakzaljakzalforce-pushed thefinder-regression-on-non-filesystem branch from89ed2e4 toead1824CompareMarch 9, 2016 12:50
@jakzal
Copy link
ContributorAuthor

Comment added.

@fabpot
Copy link
Member

Thank you@jakzal.

@fabpotfabpot merged commitead1824 intosymfony:2.3Mar 9, 2016
fabpot added a commit that referenced this pull requestMar 9, 2016
This PR was merged into the 2.3 branch.Discussion----------[Finder] Partially revert#17134 to fix a regression| Q             | A| ------------- | ---| Branch        | 2.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18013| License       | MIT| Doc PR        | -Commits-------ead1824 [Finder] Partially revert#17134 to fix a regression
@jakzaljakzal deleted the finder-regression-on-non-filesystem branchMarch 9, 2016 13:08
@fabpotfabpot mentioned this pull requestMar 13, 2016
This was referencedMar 25, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@jakzal@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp