diff --git a/lib/filelib.php b/lib/filelib.php index b096a5be1a9..bc3d19b0f15 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -3527,7 +3527,7 @@ class curl { if ((defined('PHPUNIT_TEST') && PHPUNIT_TEST)) { array_push(self::$mockresponses, $response); } else { - throw new coding_excpetion('mock_response function is only available for unit tests.'); + throw new coding_exception('mock_response function is only available for unit tests.'); } }