8000 [PHPUnit] PHP Fatal error: Cannot redeclare class Symfony\Component\Debug\Tests\Fixtures\RequiredTwice · Issue #14573 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[PHPUnit] PHP Fatal error: Cannot redeclare class Symfony\Component\Debug\Tests\Fixtures\RequiredTwice #14573

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
karolhor opened this issue May 6, 2015 · 2 comments

Comments

@karolhor
Copy link
karolhor commented May 6, 2015

Hi. When I fire phpunit with all test suit, I've got error in

ClassNotFoundFatalErrorHandlerTest::testCannotRedeclareClass()

I cloned symfony/symfony repo and I haven't made any changes to the code. I also followed documentation for contributing & PHPUnit tests.

I check this with PHPUnit version 4.5.0 and 4.6.6.
My PHP version is 5.4.26, and OSX 10.10.3

I created a gist with my output: https://gist.github.com/karolhor/b2a767420ee7541dcbc2

@xelaris
Copy link
Contributor
xelaris commented May 8, 2015

I can confirm. Running the tests of the Debug component is enough to repoduce. It don't let tests fail on travis because the related test is skipped on case-sensitive filesystems. The issue seems to be related to d90891a#diff-49579792cd5fcfe2ddd72064b1e7f416R36. See PR #14588 for a solution.

@karolhor
Copy link
Author
karolhor commented May 8, 2015

thanks :) I'm waiting for merge

fabpot added a commit that referenced this issue May 8, 2015
This PR was merged into the 2.6 branch.

Discussion
----------

[Debug] Fixed ClassNotFoundFatalErrorHandlerTest

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14573
| License       | MIT
| Doc PR        |

Since `testCannotRedeclareClass` is skipped on case-sensitive filesystems, it won't have any effect on the travis build, but fixes the issue described in #14573 for e.g. OS X.

Commits
-------

f7def8c [Debug] Fixed ClassNotFoundFatalErrorHandlerTest
@fabpot fabpot closed this as completed May 8, 2015
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

No branches or pull requests

3 participants
673
0