act as a witness vs swear to

act as a witness

swear to

How often have the words act as a witness and swear to occurred in a corpus of books? (source: Google Ngram Viewer )