Try to move a missing file.
function testMissing() { // Move non-existent file. $new_filepath = file_unmanaged_move($this ->randomName(), $this ->randomName()); $this ->assertFalse($new_filepath, 'Moving a missing file fails.'); }