Try deleting a directory.
function testDirectory() {
// A directory to operate on.
$directory = $this
->createDirectory();
// Try to delete a directory
$this
->assertFalse(file_unmanaged_delete($directory), 'Could not delete the delete directory.');
$this
->assertTrue(file_exists($directory), 'Directory has not been deleted.');
}