Skip to content

SortableIteratorTest not passing. #11631

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

Closed
kuczek opened this issue Aug 10, 2014 · 2 comments
Closed

SortableIteratorTest not passing. #11631

kuczek opened this issue Aug 10, 2014 · 2 comments
Labels

Comments

@kuczek
Copy link

kuczek commented Aug 10, 2014

1) Symfony\Component\Finder\Tests\Iterator\SortableIteratorTest::testAccept with data set #2 (3, array('/tmp/symfony2_finder/foo/bar.tmp', '/tmp/symfony2_finder/test.php', '/tmp/symfony2_finder/toto', '/tmp/symfony2_finder/foo bar', '/tmp/symfony2_finder/foo', '/tmp/symfony2_finder/test.py', '/tmp/symfony2_finder/.foo', '/tmp/symfony2_finder/.foo/.bar', '/tmp/symfony2_finder/.foo/bar', '/tmp/symfony2_finder/.git', '/tmp/symfony2_finder/.bar'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
     8 => '/tmp/symfony2_finder/.foo/bar'
-    9 => '/tmp/symfony2_finder/.git'
-    10 => '/tmp/symfony2_finder/.bar'
+    9 => '/tmp/symfony2_finder/.bar'
+    10 => '/tmp/symfony2_finder/.git'
 )
@stof
Copy link
Member

stof commented Aug 12, 2014

what is your environment (Symfony version, PHP version, OS, ...) ?

@kuczek
Copy link
Author

kuczek commented Aug 12, 2014

master, 5.5.9, ubuntu 14.04, apcu

@stof stof added the Finder label Aug 18, 2014
fabpot added a commit that referenced this issue Aug 31, 2014
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #11635).

Discussion
----------

[Finder] Fix findertest readability

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | part of #11631, #11588
| License       | MIT

When running on Ubuntu it is hard to setup an account that allows the `chmod` to downgrade the rights on a directory but is not allow to read from the downgraded directory.

Commits
-------

8a47b62 [Finder] Fix findertest readability
@fabpot fabpot closed this as completed Dec 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants