-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
@backupStaticAttributes does not work for php 5.3.26 #961
Comments
I cannot reproduce this:
|
@sebastianbergmann I've done a commit that resets static attribute by my hand. Tests work for current telltale master revision. But it's possible reproduce error if you reset to a specific revision.
Sorry for didnt give you a detailed instruction to reproduce it. Note: It seems that get_declared_classes() in PHPUnit_Util_GlobalState::backupStaticAttributes() does not return Telltale\Telltale (contains a static attribute) at first time. Backup only works after Telltale\Telltale is required first time. If you can reproduce error, confirm this issue as error and reopen I can ivestigate more. thanks, my php version
test result, same as travis
|
Duplicate of issue #1 ? |
I've tried run a test using @backupStaticAttributes feature, documentation says it requires 5.3 or greater.
I didn't explore much this potential bug, but I have an example, when Travis runs tests in https://github.com/renanbr/telltale
Context
Test case: https://github.com/renanbr/telltale/blob/880b27d2c3e87c668eb9854ed9964717bd9836fe/tests/TelltaleTest/TelltaleTest.php#L17
Target class attribute: https://github.com/renanbr/telltale/blob/880b27d2c3e87c668eb9854ed9964717bd9836fe/src/Telltale/Telltale.php#L23
Results
5.5.0 -> ok
5.4.16 -> ok
5.3.26 -> FAIL
The text was updated successfully, but these errors were encountered: