Skip to content

PHPLIB-58: CRUD spec functional tests #4

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 19 commits into from
Apr 30, 2015
Merged

Conversation

@jmikola jmikola force-pushed the crud-tests branch 2 times, most recently from c6f0b33 to 0112b46 Compare March 23, 2015 18:17
@jmikola
Copy link
Member Author

jmikola commented Mar 24, 2015

Depends on #6. Once that is completed and merged, this PR should be rebased and resumed.

@jmikola jmikola force-pushed the crud-tests branch 4 times, most recently from d1e1e6f to cb62bea Compare April 27, 2015 19:09
@jmikola jmikola changed the title [WIP] PHPLIB-58: CRUD spec functional tests PHPLIB-58: CRUD spec functional tests Apr 29, 2015
@jmikola jmikola force-pushed the crud-tests branch 8 times, most recently from 07f34e7 to 9d3aa44 Compare April 30, 2015 00:12
@jmikola jmikola force-pushed the crud-tests branch 2 times, most recently from b2ae1c2 to a872c15 Compare April 30, 2015 00:22
jmikola added 4 commits April 29, 2015 21:48
Older servers may return floats.
Earlier server versions incorrectly return an empty document instead of null. Thankfully, we can detect this edge case given the command result and input options.
jmikola added 5 commits April 29, 2015 22:42
This adds intelligent detection for the useCursor option's default value. Additionally, server 2.4 does not support any of the aggregate command options of newer servers, so we must not specify default values.

The array_map() conversion for inline aggregation results is not ideal, but we can revisit that in PHPLIB-100.
nModified is not provided for legacy write ops, so we should not check for it. Once PHPC-278 is implemented, we can change these assertions to check for null exactly.
We need to account for differing service names between 2.4 and 2.6+.
This should avoid hanging test builds if mongod fails to start.
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.

1 participant