Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

ASSIST - Rebase of current develop to (master with #242 applied) #251

Closed

Conversation

fhein
Copy link

@fhein fhein commented Feb 7, 2018

This branch is a manual rebase of current develop onto current master with PR #242 applied.
It delivers a reference on how the develop should look like when rebased to master after #242 application.

This PR was created to assist the integration of PR #242 to master (can be done automatically) and develop.

This PR can not automatically be merged to develop (it can be automatically merged with master, but that is not the point here).

I had to do some more than just selecting which side (theirs or mine) to use. There were several cases where neither was right and several where both were right.

I had to commit some additional work afterwards, because #242's implementation was not completely the same as #221's, which is already part of develop. I also removed several PHP-5.6-isms.

I hope, this can provide some help. If I can do more, please let me know. If you wanted to apply the fixes of #242 to master, I'd offer to rebase this branch to current develop, so this could be accepted in order to introduce #242 to develop.

This PR passes all tests locally.

fhein and others added 30 commits January 28, 2018 02:18
aliases and factories. Added test to show that invokables override
delegators and delegators. Added a test to show that preconfigured
invokables are ignored. Fixed that problems.
combination of alias and factory, which has changed.
assertObjectHasProperty/assertObjectNotHasProperty
reference parameter. getFactory was replaced by
createObjectThroughFactory. Adjusted delegator creation accordingly.
fhein and others added 28 commits February 7, 2018 18:47
Also updates test exception message expectations to match changes in
class.
- Adds parameter and return value annotations
- Make line lengths similar
- Use verbiage consistent with other exceptions
- Fixes test exception expectation messages to match
- Edits comment strings for grammar, spelling, punctuation, formatting, and content.
- Adds missing `@throws` annotations.
- Reverses several conditionals to make exceptions conditional vs the hot path.
- Edits exception messages.
scenarios with sharedByDefault === false. Test unreveals possible bug in
delegator handling.
There was an error in the testcase `testAbstractFactoryShouldBeCheckedForResolvedAliasesInsteadOfAliasName`
where the returnValueMap of phpunit was used wrong. This caused a false positive. The test was returning an
array which is interpreted as `TRUE`.

I discovered this when I added the `testResolvedAliasFromAbstractFactory`, which should do the opposite form the
earlier mentioned testcase.

Beside that I found a way that the servicemanager was returning `null` instead of returning false when the last fallback
on abstract factories failed.
@fhein fhein closed this Feb 7, 2018
@fhein fhein deleted the REBASE-develop-to-master-PR#242 branch February 7, 2018 23:13
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.

8 participants