A testamentary guardian is an adult designated in a parent’s Will to care for that person’s child in case both parents die before the child turns 18.
While the thought might make you shudder, you need to write a Will and choose a guardian so the courts don't do it for you should the worst should happen.