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

tests: define class properties (PHP 8.2) #522

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/mod_zoom_grade_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@
* PHPunit testcase class.
*/
class mod_zoom_grade_test extends advanced_testcase {
/**
* @var \stdClass Course record.
*/
private $course;

/**
* @var \stdClass User record for teacher.
*/
private $teacher;

/**
* @var \stdClass User record for student.
*/
private $student;

/**
* @var \mod_zoom_generator Plugin generator for tests.
*/
private $generator;

/**
* Setup to ensure that fixtures are loaded.
*/
Expand Down
5 changes: 5 additions & 0 deletions tests/mod_zoom_webservice_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
* @covers \mod_zoom_webservice
*/
class mod_zoom_webservice_test extends advanced_testcase {
/**
* @var object Anonymous class to mock \curl.
*/
private $notfoundmockcurl;

/**
* Setup to ensure that fixtures are loaded.
*/
Expand Down
Loading