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
add PheanstalkInterface #67
Conversation
Thanks for the contribution. There's some failing tests which need to be fixed:
Looks like the implementation needs the Cheers, |
Shame on me, I have not launched the tests. |
Add Test about PheanstalkInterface
Fixed ! |
Seems fine to me. To what end though? Sent from my iPhone On Mar 12, 2013, at 6:46 PM, Paul Annesley notifications@github.com wrote: Does anybody have any objections to adding Pheanstalk_PheanstalkInterface, If not, I'll merge this in and include it in v2.0.0-rc2. Pinging recent pull-requesters: @mnapoli https://github.com/mnapoli — |
Good question. My guess is that people prefer to type-hint and mock interfaces rather than implementations… |
Yep that's a good idea, even though I'd rather type-hint on a That reminds me: is there a PHP 5.3 version of Pheanstalk with namespaces planned? Because then the class names would probably be more like:
So I'm not a fan of long class names (like |
There's been at least one fork/branch with namespaces, although I imagine it's been left behind with recent changes. Given the library is compatible with pre-namespace versions of PHP (5.2 as far as I know), I can see more harm than good coming from namespacing it. That said, I also dislike long class names, so maybe we can get v2.0.0 tagged and released, and then convert to namespaces for a future v3.0.0 release.
One of us is confused, and it might be me :) But I believe @armetiz has gone with the future-namespace-compatible format of |
Ah nevermind it's the morning for me :p indeed the name is already And good idea to have namespaces in a future *major *release, that makes more sense because it will break everything. |
Hi there. Work with interfaces is really a good practice. It's allow more flexibility for the end-user. |
The implied interface of `Pheanstalk_Pheanstalk` has been extracted into `Pheanstalk_PheanstalkInterface`, which `Pheanstalk_Pheanstalk` now implements.
It's OK for me. |
No description provided.