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

Closure variants for hydration #9

Conversation

haampie
Copy link
Contributor

@haampie haampie commented Jul 30, 2016

This PR adds (among some minor details) two new Hydrate implementations, which exploit closure binding via Closure::bindTo and Closure::call (PHP7).

  • Since PHP 5.5 is EOL, I removed support for it, so I could easily upgrade to PHPUnit 5 and mark PHP7 specific tests as skipped
  • An abstract test for implementations of Hydrate is added
  • Some benchmarks are added
  • Travis is configured to run the PHPBench tests (using fewer iterations)

If support for PHP 5.5 must be provided, I'm of course willing to update this PR. The closure trick works on PHP 5.5 as well.

@coveralls
Copy link

coveralls commented Jul 30, 2016

Coverage Status

Coverage decreased (-6.5%) to 93.458% when pulling aaec435 on haampie:feature-closure-variants-for-hydration into de52b13 on matthiasnoback:master.

@haampie
Copy link
Contributor Author

haampie commented Jul 30, 2016

Maybe I should move the PHP7-specific implementation to a new package so that code coverage remains 100%

@matthiasnoback
Copy link
Owner

Looks great! Sorry for the delay.
My thoughts:

  • We can drop support for 5.5.
  • For code coverage, couldn't you just post coverage information for the PHP 7 build?

@matthiasnoback
Copy link
Owner

@haampie What's the status of this? Would you be able to finish this PR?

@matthiasnoback
Copy link
Owner

Hey @haampie, I just released a new major version which only supports PHP ^7.0. Maybe that helps to get this PR ready? If you're not interested in pushing it, just let me know, that's okay too :)

@haampie
Copy link
Contributor Author

haampie commented Mar 31, 2017

Sorry, it's been a while, I'll dig into it ;)

@haampie haampie force-pushed the feature-closure-variants-for-hydration branch from aaec435 to 74d0024 Compare March 31, 2017 23:09
@coveralls
Copy link

coveralls commented Mar 31, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 74d0024 on haampie:feature-closure-variants-for-hydration into 184e57a on matthiasnoback:master.

@haampie haampie force-pushed the feature-closure-variants-for-hydration branch from 74d0024 to 1392a12 Compare March 31, 2017 23:12
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1392a12 on haampie:feature-closure-variants-for-hydration into 184e57a on matthiasnoback:master.

@haampie haampie force-pushed the feature-closure-variants-for-hydration branch from 1392a12 to 68b7076 Compare March 31, 2017 23:16
@coveralls
Copy link

coveralls commented Mar 31, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 68b7076 on haampie:feature-closure-variants-for-hydration into 184e57a on matthiasnoback:master.

@haampie haampie force-pushed the feature-closure-variants-for-hydration branch from 68b7076 to e9a270b Compare March 31, 2017 23:18
@coveralls
Copy link

coveralls commented Mar 31, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling e9a270b on haampie:feature-closure-variants-for-hydration into 184e57a on matthiasnoback:master.

@haampie
Copy link
Contributor Author

haampie commented Mar 31, 2017

I think this is ready to be merged after rebasing a couple times :p

@matthiasnoback matthiasnoback merged commit 362d213 into matthiasnoback:master May 5, 2017
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.

None yet

3 participants