Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #35: Workaround when the class does not exist #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TomoTsuyuki
Copy link

This is a workaround to avoid the phpunit issue.

Basically check the class and using alias for the class definition.

https://moodledev.io/docs/4.2/devupdate#developer-tip---handling-changes-to-base-class-names-while-supporting-multiple-moodle-versions

After this patch, the phpunit test for lib/tests/component_test.php is working ok.

@TomoTsuyuki
Copy link
Author

Hi @timhunt

Can you review this PR to fix the issue #35 ?

@TomoTsuyuki
Copy link
Author

Hi @timhunt

Have you had a chance to review this PR?
Please let me know if I need to update something for this PR.

@TomoTsuyuki
Copy link
Author

Hi @timhunt

Do you have any updates for this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant