public function test_backup_with_unreadable_directory()
{
chmod(Path::get_root() . '/exclude', 0220);
if (is_readable(Path::get_root() . '/exclude')) {
$this->markTestSkipped("Directory was readable.");
}
$this->backup->backup();
$this->assertFileExists($this->backup->get_backup_filepath());
$this->assertArchiveNotContains($this->backup->get_backup_filepath(), array('exclude'));
$this->assertArchiveFileCount($this->backup->get_backup_filepath(), 1);
}