Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Port view helper from Zend View #10

Merged
merged 6 commits into from
Apr 30, 2018

Conversation

alextech
Copy link
Contributor

@alextech alextech commented Oct 31, 2016

As requested in #3
Many thanks to @adamlundrigan for comprehensive checklist of tasks.

Build will most likely fail until Zend View 3 is released to satisfy new composer restrictions that prevent class name collisions.
May need feedback on naming convention of PluginFlashMessenger vs. ViewHelperFlashMessenger in import statements.

Notable changes in port are:

  • no more differentiating in namespace between V2FlashMessenger and V3FlashMessenger
  • implement todo section which requested usage of class constants instead strings now that code is in same repository

@weierophinney
Copy link
Member

Build will most likely fail until Zend View 3 is released to satisfy new composer restrictions that prevent class name collisions.

There is no class name collision; this repo uses a different namespace. 😄

I've got things merged to a local branch, but have one test failure I'm trying to sort out; once that's resolved, I can merge. I'll push any changes back to your branch so that folks can review what made it into the final patch.

alextech and others added 5 commits April 30, 2018 13:15
@weierophinney weierophinney changed the base branch from master to develop April 30, 2018 18:23
@coveralls
Copy link

Coverage Status

Coverage decreased (-6.7%) to 82.212% when pulling 710a294 on alextech:feature/viewhelper into 4941d52 on zendframework:develop.

@weierophinney
Copy link
Member

Interestingly, the test failures are dependent on dependency versions. All PHP 5.6 versions, and all "lowest" targets pass, while locked/latest in all PHP 7 versions fail. I'm attempting to isolate the problem now.

@weierophinney
Copy link
Member

It's PHPUnit. Evidently, it's persisting changes to superglobals between calls in versions 6 and 7. @runInSeparateProcess does not seem to work, so I'm attempting to find another way to fix the issue.

Tests were failing on PHPUnit 6 and 7, due to a change in how those
versions persist superglobals, and, specifically, $_SESSION. This patch
resets the value of $_SESSION between tests, which solves the problems
observed.
@weierophinney weierophinney merged commit e3bf3cd into zendframework:develop Apr 30, 2018
weierophinney added a commit that referenced this pull request Apr 30, 2018
weierophinney added a commit that referenced this pull request Apr 30, 2018
@weierophinney
Copy link
Member

Thanks, @alextech!

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

Successfully merging this pull request may close these issues.

3 participants