ltb-project / ltb-common

PHP framework for LTB project applications
https://packagist.org/packages/ltb-project/ldap
GNU General Public License v3.0
3 stars 2 forks source link

improve tests in Ldap.php class #43

Open davidcoutadeur opened 1 month ago

davidcoutadeur commented 1 month ago

Currently, we can't test functions that require to modify the arguments passed by reference.

Typically, the ldap_parse_result function, but maybe also other functions.

This prevents from doing complete tests, especially with paged searches test with multiple pages.

So the goal is to improve theses test functions:

and determine if there is any other LDAP function modifying variables by reference.

davidcoutadeur commented 1 month ago

See also bug opened on mockery project: https://github.com/mockery/mockery/issues/1440