From 2ae0c9c7bc9f5ef3fd9e7e1cac3c88a41b2380cf Mon Sep 17 00:00:00 2001 From: maksudr <12033826+maksudr@users.noreply.github.com> Date: Wed, 20 Mar 2019 20:56:23 +0000 Subject: [PATCH] MDL-65038 core_files: Fix typo in function mock_response --- lib/filelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filelib.php b/lib/filelib.php index b096a5be1a97c..bc3d19b0f156c 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -3527,7 +3527,7 @@ public static function mock_response($response) { 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.'); } }