-
Notifications
You must be signed in to change notification settings - Fork 93
Test cleanup #137
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
Test cleanup #137
Conversation
1f83434
to
3986988
Compare
I did also remove composer.lock since it had trouble installing PHPUnit on different php versions (We want to support more versions than phpunit 5.x does.) This PR is ready for review |
Ping @avrahamgoldman |
Hey @Nyholm! Sorry for the delayed response here. I'm going to review this PR this upcoming Monday 👍 |
Thank you! |
Any updates? |
Could I help you to review this in any way? |
test.php | ||
composer.lock |
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.
let's keep composer.lock in version control
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.
I removed composer lock because it caused issues with phpunit and different Php versions. See https://travis-ci.org/SparkPost/php-sparkpost/builds/151201635
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.
gotcha... It looks like it's just failing for 5.5. We follow the PHP supported versions (http://php.net/supported-versions.php) and 5.5 is EOL. Let's just drop the 5.5 req from travis.yml, that should mean we can keep the lock file.
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.
Cool. I very much agree with dropping 5.5 =)
Hey Nyholm, thanks for the PR :) I'm going to start looking at this today. Would you mind sharing what bugs you found in ClassUtils that NSA fixes? |
@@ -3,7 +3,7 @@ | |||
xsi:noNamespaceSchemaLocation='http://schema.phpunit.de/4.5/phpunit.xsd' | |||
backupGlobals='true' | |||
backupStaticAttributes='false' | |||
bootstrap='test/unit/bootstrap.php' | |||
bootstrap='./vendor/autoload.php' |
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.
nice, this is much cleaner
Thank you for taking time to review this. Except for the bug fixes I found and fixed in #131, there were the following issues with ClassUtils:
|
awesome, thanks for the run down. I'm taking off for the day but will come back to this in the morning. |
Thank you! |
"php-http/guzzle6-adapter": "^1.0", | ||
"mockery/mockery": "^0.9.4", | ||
"fabpot/php-cs-fixer": "^1.11" | ||
"friendsofphp/php-cs-fixer": "^1.11", |
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.
this is the same lib, right? just moved under a different org?
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.
Yes, that is correct.
I'm just going to make sure I can run all the tests locally, but this is looking great so far 👍 |
Worked like a charm! Great PR @Nyholm :) I'll merge this in now. Btw, if you can't get enough of PHP+Sparkpost, feel free to join us in our community Slack at slack.sparkpost.com :) |
Awesome. Thank you for merging! |
This is a PR containing a few minor things:
phpunit
command in root by adding in phpunit.xmlClassUtils
because it had some bugs. Only some were fixed in Remove dependency form Guzzle #131.The
ClassUtils
class made me think that the same functionality should be reused in other packages. I created a package and made sure to add tests and some more features (like supporting inheritance). The API is also a bit cleaner than the oldClassUtils