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.
This commit is contained in:
Eloy Lafuente (stronk7)
2022-01-27 16:23:20 +01:00
parent e3240e8431
commit 18a85f8cbd
+1 -1
View File
@@ -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);