@@ -557,10 +557,11 @@ protected function setUp() {
* The file path.
*/
publicstaticfunctionfilePreDeleteCallback($path){
$success=@chmod($path,0700);
if(!$success){
trigger_error("Can not make $path writable whilst cleaning up test directory. The webserver and phpunit are probably not being run by the same user.");
}
// When the webserver runs with the same system user as phpunit, we can
// make read-only files writable again. If not, chmod will fail while the
// file deletion still works if file permissions have been configured
// correctly. Thus, we ignore any problems while running chmod.