Skip to content

Update PHPUnit #13

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

Merged
merged 1 commit into from
Jun 30, 2017
Merged

Update PHPUnit #13

merged 1 commit into from
Jun 30, 2017

Conversation

danopz
Copy link
Contributor

@danopz danopz commented Jun 29, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
License MIT

What's in this PR?

  • Update to modern PHPUnit version with namespaces
  • Moved PHPUnit to require section sice this library is for testing only and simply requires PHPUnit
  • fix autoload-dev

Why?

I have issues implementing this for compatibiity tests because of the PHPUnit version.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Just a minor thing with phpunit version

@@ -12,10 +12,10 @@
],
"require": {
"php": ">=5.4",
"psr/http-message": "^1.0"
"psr/http-message": "^1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When was the forward compavillity layer introduced?
We should use 5.7.21?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use the Namespace since 5.4.0.
If we want to I can update to ^5.7

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okey. Sorry.

@@ -26,9 +26,9 @@
"Http\\Psr7Test\\": "src/"
}
},
"autoloaddev": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops :/

Thanks

@Nyholm Nyholm merged commit 6a0d6a2 into php-http:master Jun 30, 2017
@danopz danopz deleted the phpunit-update branch June 30, 2017 06:53
@fbourigault
Copy link

Moved PHPUnit to require section sice this library is for testing only and simply requires PHPUnit

⚠️ This probably make this library not compatible with simple-phpunit from symfony/phpunit-bridge as it will completely mess the autoloading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants