-
-
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
Tests for test result cache depend on PHP implementation details #3581
Comments
Agreed. I'll upgrade the cache to use a more generic format. |
Designing your own format isn't necessary, you can depend on the
functionality without depending on exchange format.
…On Tue, 2 Apr 2019, 09:54 Ewout Pieter den Ouden, ***@***.***> wrote:
Agreed. I'll upgrade the cache to use a more generic format.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3581 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACIe6kc0lsOmnWvZHmXt8tslnMLGzXO2ks5vcwzPgaJpZM4cXXWi>
.
|
Hi @krakjoe! This is very likely true, but the I haven't looked into the specifics of the bug. The The reason I used the PHP-native |
I've looked a little closer at the failure that provoked me to make the comment that provoked this issue, it may not be related to serial format ... I'll look closer still when I've got another hour (hopefully later today) ... Regardless of what is causing this particular failure, I was making the comment that depending on the format of serialized variables is not very smart, because it's not a format we make any guarantees about - if during the release cycle for any version of PHP, we discover that it must change for security (or indeed any other) reasons, then change it must and it will break this kind of test. If you want to test if serialize/unserialize is working properly, then execute them, but don't depend on the details of the exchange format would be my advice. |
And that's very good advice! :-) I do use the output format in one of the PHPT tests to see what would be written to the filesystem. I'll fix this to better tests the lifecycle of the data in the cache, instead of the cachefile itself. There are already other tests doing this. Perhaps the end-to-end tests is superfluous already. |
Should be taken care of by 3e3aecd. |
@krakjoe informed me that some of the test failures of #3526 are likely due to changes to
serialize()
/unserialize()
. PHPUnit's tests should not depend on implementation details like that.The text was updated successfully, but these errors were encountered: