Skip to content

Commit

Permalink
MDL-73588 phpunit: Fix assertion to PHPUnit 8.5 one
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stronk7 committed Jan 27, 2022
1 parent e3240e8 commit 18a85f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/filelib_test.php
Expand Up @@ -160,7 +160,7 @@ public function test_download_file_content() {
$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);

Expand Down

0 comments on commit 18a85f8

Please sign in to comment.