Commit Graph

26 Commits

Author SHA1 Message Date
Andreas Braun
deead9687e PHPC-1716 Allow configuring server API version in manager (#1204)
* Introduce MongoDB\Driver\ServerApi

* Accept serverApi driver option

* Introduce create_test_manager factory to create manager

A centralised entry point is required to inject the API_VERSION env variable later.

* Add build variant to test with requireApiVersion=true

* Fix wrong configuration for auth variable

This changed when migrating from our own scripts to drivers-evergreen-tools and was not updated properly, causing all tests to run with auth disabled.

* Declare ZEND_PARSE_PARAMETERS_NONE macro

This macro is missing on PHP < 7.3

* Remove duplicated API param storage

* Add missing semicolons

* Add ZEND_PARSE_PARAMETERS_NON_EX macro

* Extract error handling functionality to separate macros

* Throw if internal mongoc_server_api_t is already initialised

* Use imported namespaces in tools file

* Fix type info for reflection

* Use American English spelling

* Only use typed serialize signature on PHP 8+

* Update PHONGO_PARSE_PARAMETERS_NONE macro for PHP < 7.3

* Remove usage of ZEND_STRL within zend_hash_str_add

This causes compile failures on PHP < 7.3 that I have yet to understand.

* Fix errors in new PHONGO_PARSE_PARAMETERS macros
2021-03-26 15:43:48 +01:00
Derick Rethans
a6544e1f11 PHPC-1178: Reimplement tests that load data fixtures 2018-08-14 14:30:33 +01:00
Jeremy Mikola
e70c79d3ea PHPC-1113: Remove LOAD(STANDALONE) from tests to be reimplemented
Left in, this raises a warning which results in skipping the test, which defeats the point of XFAIL.
2018-05-03 11:53:47 -04:00
Jeremy Mikola
dcc2fdf259 PHPC-1113: Use XFAIL instead of skips for tests to be reimplemented 2018-05-03 11:52:45 -04:00
Jeremy Mikola
25f9c3dbc8 PHPC-1113: Disable tests that load data fixtures (defer to PHPC-1178) 2018-05-02 16:04:09 -04:00
Jeremy Mikola
58fa85e85e PHPC-1113: Use common URI constant 2018-05-02 16:04:09 -04:00
Jeremy Mikola
5f7f350670 PHPC-1113: Replace NEEDS('STANDALONE') with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
b4062f880c PHPC-1113: Replace CLEANUP() with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
e6b8479506 Reorganize SKIPIF blocks in tests and add missing NEEDS() checks 2017-03-15 10:41:04 -04:00
Jeremy Mikola
f37f589bbc PHPC-783: Use mongoc_collection_find_with_opts() for Query exec
Query struct fields have been consolidated to a filter and opts BSON documents.

This also changes the Query debug output significantly.
2016-09-20 16:57:20 -04:00
Jeremy Mikola
20e601a853 PHPC-539: Include read concern in Query debug output 2016-02-10 10:37:51 -05:00
Jeremy Mikola
6eb0944565 PHPC-319: Convert top-level documents to stdClass by default
Update tests to expect stdClass for documents. Debug handlers and the Server getter methods will still decode documents as native arrays.
2015-07-11 00:38:05 -04:00
Hannes Magnusson
49c0567a57 PHPC-277: Ensure Query always serializes $query as a BSON object 2015-05-13 15:27:23 -07:00
Hannes Magnusson
ec91b77e46 PHPC-247: Use the bundled pregenerated fixtures 2015-04-23 16:13:36 -07:00
Hannes Magnusson
0afcb348dd PHPC-249: empty array should be serialized as array 2015-04-16 13:46:58 -07:00
Jeremy Mikola
66193e83bc PHPC-224: Consolidate Result and Cursor classes into one
This class is now simply Traversable (no longer IteratorAggregate) and adds isDead() and getId() methods from the original Cursor class.
2015-04-06 15:45:19 -04:00
Hannes Magnusson
227e7842cb Use absolute paths in skipifs too 2015-03-25 14:08:39 -07:00
Hannes Magnusson
1cce49d21c Use absolute paths on in tests so they can run easier on windows 2015-03-25 13:32:09 -07:00
Hannes Magnusson
70a184961f PHPC-180: We now load 1024 users 2015-03-16 22:28:56 -07:00
Hannes Magnusson
3efb11c140 PHPC-180: Rename constant and pass the cleanup uri explicitly
- Use the new connection string constant that includes auth
- Call the cleanup routines explicitly when needed
2015-03-16 20:30:15 -07:00
Hannes Magnusson
a9823e706f Ignore me. Trim trailing space
This has been annoying me for a long time, especially the '<?php '
2015-02-19 13:57:58 -08:00
Hannes Magnusson
481600d990 PHPC-157: Consolidate CommandResult and QueryResult classes 2015-02-18 11:09:36 -08:00
Hannes Magnusson
9e4277e402 PHPC-157: QueryResult and CommandResult are now Result 2015-02-18 11:00:07 -08:00
Hannes Magnusson
5e48dff242 PHPC-135: Fix memory leak var_dump()ing Query and add test 2015-01-09 12:36:41 -08:00
Hannes Magnusson
bb5f45c313 PHPC-118: Use MongoDB\Driver namespace for phongo 2014-12-30 14:58:33 -08:00
Hannes Magnusson
5dc733469b PHP-1183: Implement default Iterator class for QueryResult & CommandResult 2014-11-19 12:55:38 -08:00