This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Imap::capability should always return an array#164
Closed
klaussilveira wants to merge 1 commit intozendframework:masterfrom
klaussilveira:patch-1
Closed
Imap::capability should always return an array#164klaussilveira wants to merge 1 commit intozendframework:masterfrom klaussilveira:patch-1
klaussilveira wants to merge 1 commit intozendframework:masterfrom
klaussilveira:patch-1
Conversation
If there was a communication failure getting the list of capabilities, the return type should be an `array`, not `false`.
Member
|
Please do write a test case
…On 11 Aug 2017 16:25, "Klaus Silveira" ***@***.***> wrote:
If there was a communication failure getting the list of capabilities, the
return type should be an array, not false.
------------------------------
You can view, comment on, or merge this pull request online at:
#164
Commit Summary
- Imap::capability should always return an array
File Changes
- *M* src/Protocol/Imap.php
<https://github.com/zendframework/zend-mail/pull/164/files#diff-0> (2)
Patch Links:
- https://github.com/zendframework/zend-mail/pull/164.patch
- https://github.com/zendframework/zend-mail/pull/164.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#164>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakPI-1iKfjcx19lUCudkY0ArxCuMJks5sXGQ1gaJpZM4O0uWW>
.
|
Contributor
Author
|
I tried. Not really possible without proper mocks and due the way the current suite is setup. It needs a real IMAP server and you can't control it's response from the suite. I only see two possible solutions: abstracting the raw connection logic so read/write methods in this class can be properly tested with mocks OR setting up something like mountebank and mock the socket. Any suggestions? |
weierophinney
added a commit
that referenced
this pull request
Jun 6, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If there was a communication failure getting the list of capabilities, the return type should be an
array, notfalse.