diff --git a/lib/filelib.php b/lib/filelib.php index 2d189a3963a..d024a580f24 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -3386,7 +3386,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.'); } }