Update code to work with php5.3 + add unit test#1
Update code to work with php5.3 + add unit test#1rande wants to merge 1 commit intochregu:masterfrom
Conversation
|
Could you please seperate White Space only, test additions and code changes in single PRs or at least single commits? And please explain a little bit more, what exactly you did? You "just" introduced a namespace and tests? (thanks anyway for the effort) I'm ususally not a big fan of introducing namespaces just for the sake of it (if it's a single class library which didn't have them before), but I'll think about it :) And when we're at it, I'd have to think about the namespace, not sure if \Google\ is the right one here. |
|
ONe more question out of curiosity: |
|
@chregu compatibility with version X of PHP does not necessarily imply incompatibility with version Y. Maybe adding GoogleAuthenticator to travis-ci.org to test against multiple PHP versions is a good idea. Get started and see our PHP-centric guide if you want to learn more. |
|
Well, PHP 5.2 is not supported anymore, imho it is time to move ;) So yes, this PR broke the php5.2 compatibility, and also clean the code a bit :
|
|
@michaelklishin The code ran as well with PHP 5.3 (and 5.4) and I know travis-ci :) I'm just a little baffled usually to add namespaces just for the sake of it. @rande I will move the library to the Liip account, name it properly and add namespaces. For that I would still be very happy, if you could separate your changes in different commits and separate the things you did. |
No description provided.