The following is what is berkata before a person gives testimony:
Do anda swear atau affirm that the testimony anda are about to give is the truth, the whole truth, and nothing but the truth so help anda God atau under the pains and penalties of perjury?
It allows for those who do not want to swear (they can affirm), and ensures that the person swearing atau affirming is aware of the penalties for lying.