From 18a85f8cbd74816481cf11ef1de37be8303435b1 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 27 Jan 2022 16:12:53 +0100 Subject: [PATCH] MDL-73588 phpunit: Fix assertion to PHPUnit 8.5 one This issue was backported from 311_STABLE that uses PHPUnit 9.5, were the regexp assertion was renamed. This just moves it back to the 8.5 one for 39 and 310 stables. --- lib/tests/filelib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/filelib_test.php b/lib/tests/filelib_test.php index 3c23cdfd51f..91c177bc044 100644 --- a/lib/tests/filelib_test.php +++ b/lib/tests/filelib_test.php @@ -160,7 +160,7 @@ class core_filelib_testcase extends advanced_testcase { $this->assertInstanceOf('stdClass', $response); $this->assertSame('200', $response->status); $this->assertTrue(is_array($response->headers)); - $this->assertMatchesRegularExpression('|^HTTP/1\.[01] 200 OK$|', rtrim($response->response_code)); + $this->assertRegExp('|^HTTP/1\.[01] 200 OK$|', rtrim($response->response_code)); $this->assertSame('done', $response->results); $this->assertSame('', $response->error);