Skip to content

Commit

Permalink
MDL-43510 fix 404 unit test server incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Dec 29, 2013
1 parent bbb291b commit b1652d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/filelib_test.php
Expand Up @@ -129,7 +129,7 @@ public function test_download_file_content() {
$this->assertSame('404', $response->status);
$this->assertTrue(is_array($response->headers));
$this->assertRegExp('|^HTTP/1\.[01] 404 Not Found$|', rtrim($response->response_code));
$this->assertStringStartsWith('<!DOCTYPE', $response->results);
// Do not test the response starts with DOCTYPE here because some servers may return different headers.
$this->assertSame('', $response->error);

// Invalid url.
Expand Down

0 comments on commit b1652d6

Please sign in to comment.