Skip to content

QA - ftp_connect - error behavior when connection fails #9002

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

Merged
merged 3 commits into from
Jul 14, 2022

Conversation

juan-morales
Copy link
Contributor

Extension: ftp
Function: ftp_connect

Test and coverage when connection fails.
We test expected result , PLUS, the PHP error (warning) generated.

Coverage looks like:

image

After

image

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Generally a good idea to test this, but the test needs some tweaks.

juan-morales and others added 2 commits July 13, 2022 21:07
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
@juan-morales juan-morales requested a review from cmb69 July 13, 2022 20:12
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you!

@cmb69 cmb69 merged commit 492093a into php:master Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants