Merge branch 'w01_MDL-43510_m27_test404' of https://github.com/skodak/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 7 Jan 2014 09:28:15 +0000 (17:28 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 7 Jan 2014 09:28:15 +0000 (17:28 +0800)
lib/tests/filelib_test.php

index f5ce378..4b5c20a 100644 (file)
@@ -129,7 +129,7 @@ class core_filelib_testcase extends advanced_testcase {
         $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.