You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin defines a Response class in the global namespace, causing a class collision and failing unit tests when qtype_stack creates a mock class with the same name.
Using namespaces would have prevented this issue. Are there any plans for introducing them?
This plugin defines a
Response
class in the global namespace, causing a class collision and failing unit tests whenqtype_stack
creates a mock class with the same name.Using namespaces would have prevented this issue. Are there any plans for introducing them?
https://github.com/turnitin/moodle-mod_turnitintooltwo/blob/develop/sdk/response.class.php#L11
https://github.com/maths/moodle-qtype_stack/blob/master/tests/api_controller_test.php#L103-L106
Example test output below. Tested with Moodle 4.1 and 4.5.
Cheers.
The text was updated successfully, but these errors were encountered: