moodle/lib/dml
Eloy Lafuente (stronk7) 87f196af93 MDL-65204 phpunit: more isEqual() strict string fixes
This is a followup of 85f47ba, where we were relaxing
the (new since phpunit 7.x) strict (===) isEqual()
comparison for strings. Copying the explanations for
easier understanding.

Link: https://github.com/sebastianbergmann/phpunit/issues/3185
Solution here is one of:
  a) Return to the previous situation, making the comparison
     softer. That can achieved by forcing different types, so
     float == string works.
  b) Changing APIs (both forms and database return strings) to
     perform some conversion to floats. That would make float
     comparison (with floats or strings) to work too.
The patch here follows the a) approach. Changing all the internals
for proper float handling sounds excesive when it has been working
perfectly since ever. So we went the easier route, just getting
rid of the new === comparisons when needed by changing expectation
types to float.
2019-04-03 22:08:16 +02:00
..
tests MDL-65204 phpunit: more isEqual() strict string fixes 2019-04-03 22:08:16 +02:00
database_column_info.php
mariadb_native_moodle_database.php
moodle_database.php MDL-65168 dml: Move preload SQL functions to self-contained class 2019-03-25 23:05:22 +01:00
moodle_recordset.php
moodle_temptables.php
moodle_transaction.php
mysqli_native_moodle_database.php MDL-61702 dml: MariaDB 10.3 supports only the Barracuda file format. 2018-05-31 22:55:00 +02:00
mysqli_native_moodle_recordset.php
mysqli_native_moodle_temptables.php
oci_native_moodle_database.php
oci_native_moodle_package.sql
oci_native_moodle_recordset.php
oci_native_moodle_temptables.php
pdo_moodle_database.php
pdo_moodle_recordset.php
pgsql_native_moodle_database.php
pgsql_native_moodle_recordset.php
pgsql_native_moodle_temptables.php
sqlite3_pdo_moodle_database.php
sqlsrv_native_moodle_database.php
sqlsrv_native_moodle_recordset.php
sqlsrv_native_moodle_temptables.php