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

fix guzzle test suite #43

Merged
merged 1 commit into from Feb 5, 2020
Merged

fix guzzle test suite #43

merged 1 commit into from Feb 5, 2020

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Feb 3, 2020

Skip test not suitable for guzzle. Replaces #40. The remaining failure will be resolved with guzzle/psr7#317

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks! i commented on some minor details, hopefully you can adjust those?

src/ServerRequestIntegrationTest.php Show resolved Hide resolved
src/ServerRequestIntegrationTest.php Show resolved Hide resolved
$testCases = parent::getInvalidHeaderArguments();

// Guzzle accepts false as value for BC
unset($testCases[3]);
Copy link
Contributor

Choose a reason for hiding this comment

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

could we name the test cases to make this more robust? (if a data provider uses array keys for the test sets, phpunit also logs that when a test fails, so instead of "failed with data set 3" you would see "failed with data set 'set to false'")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

phpunit also outputs the value (false). so naming it does not improve it. but I can do so if you prefer

Copy link
Contributor

Choose a reason for hiding this comment

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

i think it is more robust in this place here when you can unset the specific named test, instead of "index 3", so i'd prefer if you can name them.

@dbu dbu merged commit 7c963b6 into php-http:master Feb 5, 2020
@dbu
Copy link
Contributor

dbu commented Feb 5, 2020

thanks for the work!

if you have time to do the named provider items it would be nice, but did not consider it a blocker.

@Tobion Tobion deleted the guzzle-tests branch February 5, 2020 11:21
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

2 participants