moodle/question/type/calculatedsimple
Eloy Lafuente (stronk7) a293b3aea8 MDL-67673 phpunit: Remove deprecated non-public attribute assertions
With PHPUnit 8 a good number of assertions, all them related with
operations on non-public attributes have been deprecated. And will
be removed with PHPUnit 9.

The main point is that unit tests shouldn't be testing non-public
APIs (good practice) and those assertions were an error originally.

See https://github.com/sebastianbergmann/phpunit/issues/3338 for
the complete list and other details.

When possible (the attributes being checked are public), the change
is simple, just switching to normal assertions.

When the attributes are not public we need to find a workaround
to be able to test the same using public APIs, or use Reflection,
or remove the tests.

For the records, this is the regexp used to find all the cases:

ag '>(assertAttribute|attribute\(|readAttributte|getStaticAttribute| \
    getObjectAttribute)' -G "test.php"
2020-10-21 12:46:00 +02:00
..
backup/moodle2
classes/privacy MDL-61407 qtype: Add null_writer for all qtypes 2018-05-03 16:14:37 +08:00
db
lang/en MDL-61407 qtype: Add null_writer for all qtypes 2018-05-03 16:14:37 +08:00
pix NOBUG: Fixed SVG browser compatibility 2018-01-25 15:14:21 +08:00
tests MDL-67673 phpunit: Remove deprecated non-public attribute assertions 2020-10-21 12:46:00 +02:00
edit_calculatedsimple_form.php MDL-67151 qtype_calculatedsimple: Support for the scientific format 2019-12-03 16:52:22 +11:00
lib.php
question.php
questiontype.php MDL-53140 qtype_calculatedsimple: Support locale-aware decimal points 2019-05-01 12:10:33 +10:00
renderer.php
styles.css MDL-55168 css: reformat plain css with stylefmt 2016-09-30 09:25:23 +01:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00