3737 * @copyright Copyright (c) 2015 Blackboard Inc. (http://www.blackboard.com)
3838 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3939 */
40- class lib_test extends \basic_testcase {
40+ final class lib_test extends \basic_testcase {
4141 /**
4242 * Test addition.
4343 *
4444 * @covers ::local_ci_add
4545 */
46- public function test_local_ci_add () {
46+ public function test_local_ci_add (): void {
4747 $ this ->assertEquals (4 , local_ci_add (2 , 2 ));
4848 $ this ->assertEquals (2 , local_ci_add (4 , -2 ));
4949 $ this ->assertEquals (0 , local_ci_add (-4 , 4 ));
@@ -54,7 +54,7 @@ public function test_local_ci_add() {
5454 *
5555 * @covers ::local_ci_subtract
5656 */
57- public function test_local_ci_subtract () {
57+ public function test_local_ci_subtract (): void {
5858 $ this ->assertEquals (0 , local_ci_subtract (2 , 2 ));
5959 $ this ->assertEquals (6 , local_ci_subtract (4 , -2 ));
6060 $ this ->assertEquals (-8 , local_ci_subtract (-4 , 4 ));
@@ -65,7 +65,7 @@ public function test_local_ci_subtract() {
6565 *
6666 * @covers \local_ci\math::add
6767 */
68- public function test_local_ci_math () {
68+ public function test_local_ci_math (): void {
6969 $ math = new \local_ci_math ();
7070 $ this ->assertEquals (4 , $ math ->add (2 , 2 ));
7171 $ this ->assertEquals (2 , $ math ->add (4 , -2 ));
@@ -77,7 +77,7 @@ public function test_local_ci_math() {
7777 *
7878 * @covers \local_ci\math::add
7979 */
80- public function test_local_ci_math_class () {
80+ public function test_local_ci_math_class (): void {
8181 $ math = new math ();
8282 $ this ->assertEquals (4 , $ math ->add (2 , 2 ));
8383 $ this ->assertEquals (2 , $ math ->add (4 , -2 ));
0 commit comments