-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
all datatypes for blackhole adapter #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JesBei Thanks for your contribution.
In order to accept the PR we need unit test to be added to cover the changes.
Also please revert all unrelated formatting changes and check DCO status. Thanks.
Btw: the error described by @JesBei happens when using the PSR-16 decorator, which leaves the Blackhole adapter unusable together with PSR-16. |
61f43fc
to
b337d3f
Compare
Signed-off-by: JesBei <jesper.beisner@yahoo.de>
b337d3f
to
718e2fd
Compare
Added the Unit Test and reverted the formatting. |
@JesBei Could you please add integration tests for Blackhole aswell? As @fabiang states, there is an issue with the PSR decorators. Thus, with those tests, we would have initial failing tests aswell. I will move those changes to laminas/laminas-cache-storage-adapter-blackhole in case we are fixing that "issue" in a patch version. If not, these changes will definitely be part of the 2.10 milestone. |
The integration tests does make much sense, since the blackhole adapter doesn't cache anything and as a result the tests that come from https://github.com/php-cache/integration-tests should fail. The only reasonable test could be that the decorators can handle the adapter and imho this could be done in the unit test directly. |
@JesBei I have to revert my latest statement, that this will be definetely be part of the next minor (2.10.0). If you still need support for this feature, please fork laminas/laminas-cache-storage-adapter-blackhole and re-open a PR in the adapter project. |
Description
Blackhole adapter now accepts all datatypes and doesn't need a serializer anymore. Otherwise you have to implement the EventSystem but I don't think that's necessary because blackhole doesn't save anything anyway.