Skip to content

Commit

Permalink
Merge pull request #522 from jrchamp/fix/php-82-dynamic-properties
Browse files Browse the repository at this point in the history
tests: define class properties (PHP 8.2)
  • Loading branch information
jrchamp authored Sep 28, 2023
2 parents c9fb37c + a4276a2 commit 67a04c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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

0 comments on commit 67a04c4

Please sign in to comment.