Commit Graph

9 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
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 1877e6a01a Fix variable name in test
This fixes a typo introduced in 4967eff756.
2018-04-16 13:34:33 -04:00
Jeremy Mikola 4967eff756 Invalid namespace test needs STANDALONE
This reverts changes from 0b200dda09 and is related to PR #806 for v1.4.
2018-04-16 13:23:20 -04:00
Jeremy Mikola a2638aeeec Merge branch 'v1.4' 2018-04-16 13:22:00 -04:00
Jeremy Mikola 1904f7e935 Invalid namespace tests needs STANDALONE
In b29c423fda for PHPC-1057, Manager's execute methods were changed to perform server selection before invoking the phongo_execute functions, which throw InvalidArgumentExceptions such as this. Without a running standalone server, this test will encounter a server selection failure before we have a chance to parse the namespace string.
2018-04-16 12:05:57 -04:00
Jeremy Mikola 0b200dda09 PHPC-1133: Remove unused includes in SKIPIF and FILE sections 2018-02-27 09:48:25 -05:00
Jeremy Mikola e61b67809e PHPC-357: Revise test and relocate to standalone group 2015-08-05 21:56:56 -04:00