Skip to content
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 PHP 7.2 #6

Merged
merged 3 commits into from
Aug 20, 2018
Merged

Test PHP 7.2 #6

merged 3 commits into from
Aug 20, 2018

Conversation

whikloj
Copy link
Contributor

@whikloj whikloj commented Aug 15, 2018

I thought because JsonLD relies on this (and I submitted lanthaler/JsonLD#92) I should add a test for PHP 7.2 here as well.

That brought up some issues because Travis has changed and this repository seemed to fail tests that previously it passed.

I have done some moving of pieces to get all the test working again.

I didn't but I think you can remove this line as there is no http_test_server installed so this does nothing.

I hope I haven't overstepped my bounds here.

cheers

Use proper autoloading

Fix whitelist

Use class for PHP 7 and define phpunit version

Fix composer.json

Use required phpunit
composer.json Outdated
"psr-0": { "ML\\IRI": "" }
"classmap": ["src/"],
"psr-4": {
"ML\\IRI\\": "src/",
Copy link
Owner

Choose a reason for hiding this comment

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

Any reason to not simply point this to "", get rid of the second declaration and leave the IRI.php file where it currently is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair point @lanthaler, this is the standard I've used and I get scared to deviate but it doesn't seem like its necessary.

@lanthaler
Copy link
Owner

Thanks a lot for this Jared. Feel free to remove the http_test_server line as well, it was probably a copy-paste left-over

@whikloj
Copy link
Contributor Author

whikloj commented Aug 17, 2018

I realize the code-coverage is wrong now, I'll figure that out and add another commit here.

@lanthaler lanthaler merged commit d9719f6 into lanthaler:master Aug 20, 2018
@lanthaler
Copy link
Owner

Thanks for these changes Jared

@whikloj whikloj deleted the test-7.2 branch November 14, 2018 18:34
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.

2 participants