MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit and we are checking for it since Moodle 4.4. All the changes in this commit have been applied automatically using the moodle.PHPUnit.TestReturnType sniff and are, exclusively adding the ": void" return types when missing.
This commit is contained in:
@@ -34,7 +34,7 @@ class csslib_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test that css_is_colour function throws an exception.
|
||||
*/
|
||||
public function test_css_is_colour() {
|
||||
public function test_css_is_colour(): void {
|
||||
$this->expectException('coding_exception');
|
||||
$this->expectExceptionMessage('css_is_colour() can not be used anymore.');
|
||||
css_is_colour();
|
||||
@@ -43,7 +43,7 @@ class csslib_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test that css_is_width function throws an exception.
|
||||
*/
|
||||
public function test_css_is_width() {
|
||||
public function test_css_is_width(): void {
|
||||
$this->expectException('coding_exception');
|
||||
$this->expectExceptionMessage('css_is_width() can not be used anymore.');
|
||||
css_is_width();
|
||||
|
||||
Reference in New Issue
Block a user